Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(roomData)
{
super();
// @NOTE: this JSON is to send the scene data to the client, here we could remove data we don't want to send.
this.sceneData = JSON.stringify(roomData);
this.players = new MapSchema();
}