src code

instance method Client#onMessage

Client#onMessage(message) → undefined
  • message (String) – The String value of the message sent from the server.

Event handler that is called after the server sends a message to this instance through the network. You must implement this function in a subclass to be useful with the message value in your game.