CGameClient.onMessage() method

Warning: This API is now obsolete.

use onMessage(type: string | number, cb: (data: any) => void) instead

Signature:

onMessage(cb: (message: any) => void): any;

Parameters

Parameter

Type

Description

cb

(message: any) => void

**Returns:**

any