Creates and returns a new, enabled Transport instance. transportConfig is a TransportConfig-like object for if you need to change any transport options from the library defaults.
Indicates if the transport is currently enabled or not.
Disables the transport. Disabling a transport does not necessarily close the socket, it will only discard incoming messages and prevent the transport from being used to send outgoing messages.
Enables the transport. Transports are automatically enabled upon creation, so you don't need to call this method unless you explicitly disable the transport first.
Returns information (TransportInfo) about the transport
Attaches the Transport to the event loop (default upon instantiation).
Detaches the Transport from the event loop.
Generated using TypeDoc
Transport