WebSocketJanusTransport class

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?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
getter/setter pair
pingInterval Duration?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId int?
getter/setter pairinherited
sink ↔ WebSocketSink?
getter/setter pair
stream Stream
getter/setter pair
url String?
getter/setter pairinherited

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 nonexistent 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