ServerApi.onMessage() method
Signature:
onMessage(type: string, cb: (message: any, playerId: string) => void): () => void;
Parameters
Parameter |
Type |
Description |
---|---|---|
type |
string | |
cb |
(message: any, playerId: string) => void |
() => void