Home > @rainway/web > Transport_2
Transport_2 class
A base class which can be used to instantiate various network transports.
Signature:
export declare abstract class Transport
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| maxMessageSize | number | Get channel max message size. | |
| status | TransportStatus | 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) |
