API ReferenceGameroomOnmessageGameRoom.onMessage() method listen to incoming messages from the server Signature: onMessage(listener: (data: any) => unknown): () => void; Parameters Parameter Type Description listener (data: any) => unknown **Returns:** () => void