WebSocketJanusTransport class Null safety

This transport class is provided to JanusClient instances in transport property in order to
inform the plugin that we need to use WebSockets as a transport mechanism for communicating with Janus Server.

Inheritance

Constructors

WebSocketJanusTransport({String? url, Duration? pingInterval})

Properties

channel WebSocketChannel?
read / write
hashCode int
The hash code for this object.
read-only, inherited
isConnected bool
read / write
pingInterval Duration?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sessionId int?
read / write, inherited
sink WebSocketSink?
read / write
stream Stream
read / write
url String?
read / write, inherited

Methods

connect() → void
this method is internally called by plugin to establish connection with provided websocket uri.
dispose() → void
this is called internally whenever JanusSession or JanusPlugin is disposed for cleaning up of active connections either polling or websocket connection.
override
getInfo() Future
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
send(Map<String, dynamic> data, {int? handleId}) Future
this method is used to send json payload to Janus Server for communicating the intent.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited