Construct a NetworkDevice, for interacting with a remote server via Socket.IO. Note that by default, the network device is not connected to anything.
An event handler for when a remote user sends a message
An event handler for when a remote user sends a message
An event handler for when the socket initially connects
An event handler for when the socket initially connects
An event handler for when the socket disconnects
An event handler for when the socket disconnects
An event handler for when a remote user joins the room
An event handler for when a remote user joins the room
An event handler for when a remote user exits the room
An event handler for when a remote user exits the room
An event handler for when we succeed in making a new room
An event handler for when we succeed in making a new room
An event handler for errors due to incorrectly formatted requests
An event handler for errors due to incorrectly formatted requests
An event handler for when we request a room but already have one
An event handler for when we request a room but already have one
An event handler for when we try to log in when we're already logged in
An event handler for when we try to log in when we're already logged in
An event handler for errors due to not having a room
An event handler for errors due to not having a room
An event handler for errors due to not logging in first
An event handler for errors due to not logging in first
An event handler for when the server says our username is taken
An event handler for when the server says our username is taken
An event handler for when we succeed in joining an existing room
An event handler for when we succeed in joining an existing room
An event handler for when a login request succeeds
An event handler for when a login request succeeds
An event handler for when a logout request succeeds
An event handler for when a logout request succeeds
An event handler for when a broadcast is sent successfully
An event handler for when a broadcast is sent successfully
A socket for communicating with the server
The current state of the network stack
NetworkDevice interfaces with a server (see the "multiplayer-server" folder) via socket.io to send and receive network events.