TransportCallbackTransportCallbackTransportCallbackTransportCallbackSafely 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. |
TransportCallbackSets 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. |
TransportCallbackSets 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. |
TransportCallbackSets 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. |
TransportCallbackSets 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. |