Inheritance

Constructors

WebSocketConnection(WebSocket socket, ClientLink clientLink, { Function onConnect, bool enableAck: false, DsCodec useCodec })

clientLink is not needed when websocket works in server link

Properties

final
nextMsgId → int

read / write
onConnect → Function

read / write
onDisconnected → Future<bool>

read-only
onRequesterReady → Future<ConnectionChannel>

read-only
opened → bool

read-only
pingTimer → Timer

read / write
requesterChannel ConnectionChannel

read-only
responderChannel ConnectionChannel

read-only
socket → WebSocket

final
codec DsCodec

read / write, inherited
hashCode → int

The hash code for this object.

read-only, inherited
pendingAcks → ListQueue<ConnectionAckGroup>

read / write, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

addConnCommand(String key, Object value) → void

add server command, will be called only when used as server connection

close() → void

close the connection

onPingTimer(Timer t) → void

requireSend() → void

notify the connection channel need to send data

ack(int ackId) → void

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited