WebSocketTransport class

Inheritance

Constructors

WebSocketTransport(dynamic connect)

Properties

connect ↔ SocketConnect?
getter/setter pairinherited
discarded ↔ bool
getter/setter pairinherited
handlesUpgrades → bool
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
httpCompression ↔ Map?
getter/setter pairinherited
maxHttpBufferSize ↔ double?
getter/setter pairinherited
messageHandler ↔ MessageHandler?
getter/setter pairinherited
name ↔ String?
getter/setter pairinherited
perMessageDeflate ↔ Map?
getter/setter pairinherited
readyState ↔ String
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sid ↔ String?
getter/setter pairinherited
subscription ↔ StreamSubscription?
getter/setter pair
supportsBinary ↔ bool?
getter/setter pairinherited
supportsFraming → bool
no setteroverride
writable ↔ bool?
getter/setter pairinherited

Methods

clearListeners() → void
This function unbinds all the handlers for all the events.
inherited
close([dynamic closeFn()?]) → void
inherited
discard() → void
inherited
doClose([dynamic fn()?]) → void
override
emit(String event, [dynamic data]) → void
This function triggers all the handlers currently listening to event and passes them data.
inherited
hasListeners(String event) → bool
Returns whether the event has registered.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, [Function? handler]) → void
This function attempts to unbind the handler from the event
inherited
on<T>(String event, EventHandler<T> handler) → void
This function binds the handler as a listener to the event
inherited
once<T>(String event, EventHandler<T> handler) → void
This function binds the handler as a listener to the first occurrence of the event. When handler is called once, it is removed.
inherited
onClose() → void
override
onData(dynamic data) → void
inherited
onError(dynamic msg, [dynamic desc]) → void
inherited
onPacket(Map packet) → void
inherited
onRequest(SocketConnect connect) → void
inherited
send(List<Map> packets) → void
override
toString() → String
A string representation of this object.
inherited

Operators

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