GameRoom.send() method

Sends a message to the server, the data type is specific to the game

For example client.send({ type: "hit", damage: 10 })

Signature:

send(data: CM): void;

Parameters

Parameter

Type

Description

data

CM

**Returns:**

void