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

ParameterTypeDescription
dataCM

Returns:

void