HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - Transport\_2

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

PropertyModifiersTypeDescription
maxMessageSizenumberGet channel max message size.
statusTransportStatusStatus 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)