Web SDK - PeerState

Home > rainway-sdk > PeerState

PeerState enum

Signature:

export declare enum PeerState 

Enumeration Members

MemberValueDescription
Connected2Peer is currently connected and messages should be sent/received without issues
Connecting1Attempting to form a new connection
Disconnected3Peer is currently disconnected which indicates an issue with the underlying connection. Reconnection attempts will automatically occur until a Connected or a Failed state is reached.
Failed4Connection to this peer will no longer attempt to be re-established.
New0A newly created peer