GameRoom.onMessage() method
Warning: This API is now obsolete.
use
onMessage(type: string | number, listener: (data: any) => void): () => void;
instead
Signature:
onMessage(listener: (data: any) => void): () => void;
Parameters
Parameter |
Type |
Description |
---|---|---|
listener |
(data: any) => void |
() => void