CustomTransportCustomTransportInitializes an instance of CustomTransport.
A byte buffer was passed here for processing
Kind: Instance method of CustomTransport
| Param | Type | Description |
|---|---|---|
| message | Uint8Array |
A message to process |
Triggers the transport callback for an error
Kind: Instance method of CustomTransport
The app instantiating this class needs to implement this method! sendPacket calls this method
Kind: Instance method of CustomTransport
| Param | Type | Description |
|---|---|---|
| bytes | UInt8Array |
the byte array to send via the transport. |
CustomTransportSends a packet through the transport
Kind: Instance method of CustomTransport
Returns: CustomTransport - Returns the class instance to allow method chaining.
| Param | Type | Description |
|---|---|---|
| packet | _SdlPacket |
An _SdlPacket to send. |
CustomTransportSets the transport callback function, which is triggered at a later time.
Kind: Instance method of CustomTransport
Returns: CustomTransport - Returns the class instance to allow method chaining.
| Param | Type | Description |
|---|---|---|
| callback | TransportCallback |
A TransportCallback. |