constants connectionState - wxyz-abcd/node-haxball GitHub Wiki
ConnectionState
These values are used to track the current state of connection while joining a room. (Designed for the onConnInfo(state, extraInfo)
callback in the second parameter of Room.join
function.) Here is its current definition:
const ConnectionState = {
TryingReverseConnection: -1,
ConnectingToMaster: 0,
ConnectingToPeer: 1,
AwaitingState: 2,
Active: 3,
ConnectionFailed: 4
};