Home > rainway-sdk > RainwayTransport
RainwayTransport class
A base class which can be used to instantiate various network transports.
Signature:
export declare abstract class RainwayTransport
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
maxMessageSize | number | Get channel max message size. | |
status | RainwayTransportStatus | Status of the underlying transport. |
Methods
Method | Modifiers | Description |
---|---|---|
close() | Closes the underlying transport and disposes of its resources. | |
getStats() | Get statistics for transport. | |
open(andSend) | Attempts to open the transport and establish a connection. | |
sendArbitraryDatagram(label, body) | Creates an instance of RainwayTransport. | |
sendInputDatagram(body) | ||
sendLogicDatagram(body) |