Events

Map Lost

All the events exposed by the public interface are described here. .Events

name description example data

ready

Event thrown when the communication has been established with the server and the authentication is correct.

connect

A low-level event: you probably want to use the 'ready' event instead. Thrown when the connection to the server is established (websockets, polling etc.). This does not necessarily mean that the authentication was successful. The handler function takes an array of previous/next states for maximum flexibility.

error

when an error is thrown, this is useful for logging, debugging