TransportCallback
TransportCallback
TransportCallback
TransportCallback
Safely attempts to invoke the onConnectionEstablished method.
Kind: Instance method of TransportCallback
Safely attempts to invoke the onConnectionTerminated method.
Kind: Instance method of TransportCallback
Param | Type | Description |
---|---|---|
reason | String |
A reason for the termination. |
Safely attempts to invoke the onError method.
Kind: Instance method of TransportCallback
Safely attempts to invoke the onPacketReceived method.
Kind: Instance method of TransportCallback
Param | Type | Description |
---|---|---|
packet | _SdlPacket |
An _SdlPacket. |
TransportCallback
Sets the onConnectionEstablished callback.
Kind: Instance method of TransportCallback
Returns: TransportCallback
- A class reference to allow method chaining.
Param | Type | Description |
---|---|---|
listener | function |
A Function to be invoked when the event is triggered. |
TransportCallback
Sets the onConnectionTerminated callback.
Kind: Instance method of TransportCallback
Returns: TransportCallback
- A class reference to allow method chaining.
Param | Type | Description |
---|---|---|
listener | function |
A Function to be invoked when the event is triggered. |
TransportCallback
Sets the onError callback.
Kind: Instance method of TransportCallback
Returns: TransportCallback
- A class reference to allow method chaining.
Param | Type | Description |
---|---|---|
listener | function |
A Function to be invoked when the event is triggered. |
TransportCallback
Sets the onPacketReceived callback.
Kind: Instance method of TransportCallback
Returns: TransportCallback
- A class reference to allow method chaining.
Param | Type | Description |
---|---|---|
listener | function |
A Function to be invoked when the event is triggered. |