MoopsyTransport
class
MoopsyTransport
()
Private Class
()
None
Methods / Properties
awaitConnected()=> Promise<void> 🔗
useStatus()=> React Hook<TransportStatus> 🔗
useIsConnected()=> React Hook<boolean> 🔗
A Moopsy Transport handles direct communication with the Moopsy Server. You should not create transports yourself, instead create a Moopsy Client which automatically wraps a Moopsy Transport within itself.
Moopsy Transports are self-repairing, and will attempt to auto-reconnect if the connection is disrupted. Any network calls sent while the connection is unavailable are queued and will be sent as soon as the connection is re-established.