Web SDK - RainwayTransport

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

PropertyModifiersTypeDescription
maxMessageSizenumberGet channel max message size.
statusRainwayTransportStatusStatus of the underlying transport.

Methods

MethodModifiersDescription
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)