API ReferenceCgameclientOnmessage1CGameClient.onMessage() method Signature: onMessage(type: string | number, cb: (data: any) => void): any; Parameters Parameter Type Description type string | number cb (data: any) => void **Returns:** any