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(type: string | number, data: CM): any;

Parameters

Parameter

Type

Description

type

string | number

data

CM

**Returns:**

any