This is the script that is executed when the client sends a message.
//here eventName, messageStruct and senderClientId variables are set by defaulr// game is also a given object, so you can scout it and its hierarchy and make any logic workswitch(eventName){case"some event"://do somethingif(senderClientId >10){//just print out the event we gotconsole.log(eventName)console.log(messageStruct) }break;//make more cases for more events}