PollingTransport class

Inheritance
Implementers

Constructors

PollingTransport(dynamic connect)

Properties

closeTimeout ↔ int
getter/setter pair
connect ↔ SocketConnect?
getter/setter pairinherited
dataReq ↔ SocketConnect?
getter/setter pair
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
shouldClose ↔ Function?
getter/setter pair
sid ↔ String?
getter/setter pairinherited
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
Closes the transport.
override
doWrite(dynamic data, dynamic options, [dynamic callback]) → void
Performs the write.
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
headers(SocketConnect connect, [Map? headers]) → Map
Returns headers for a response.
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
Overrides onClose.
override
onData(dynamic data) → void
Processes the incoming data payload.
override
onDataRequest(SocketConnect connect) → void
The client sends a request with data.
onError(dynamic msg, [dynamic desc]) → void
inherited
onPacket(Map packet) → void
inherited
onPollRequest(SocketConnect connect) → void
The client sends a request awaiting for us to send data.
onRequest(SocketConnect connect) → void
override
send(List packets) → void
Writes a packet payload.
override
toString() → String
A string representation of this object.
inherited
write(dynamic data, [dynamic options]) → void
Writes data as response to poll request.

Operators

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