HTML5 Client Listeners
- Response Listeners
- onConnectDone
- onDisconnectDone
- onJoinLobbyDone
- onLeaveLobbyDone
- onSubscribeLobbyDone
- onUnsubscribeLobbyDone
- onGetLiveLobbyInfoDone
- onSubscribeRoomDone
- onUnsubscribeRoomDone
- onJoinRoomDone
- onLeaveRoomDone
- onGetLiveRoomInfoDone
- onSetCustomRoomDataDone
- onUpdatePropertyDone
- onLockPropertiesDone
/** * Invoked in response to a connect request. * @param event:number */ onConnectDone(event);
/** * Invoked in response to a disconnect request. * @param event:number */ onDisconnectDone(event);
/** * Invoked in response to a subscribeRoom request. * @param event:Room */ onSubscribeRoomDone(event);
/** * Invoked in response to a UnSubscribeRoom request. * @param event:Room */ onUnSubscribeRoomDone(event);
/** * Invoked in response to a joinRoom request. * @param event:Room */ onJoinRoomDone(event);
/** * Invoked in response to a leaveRoom request. * @param event:Room */ onLeaveRoomDone(event);
/** * Invoked in response to a getLiveRoomInfo request. * @param event:Room */ onGetLiveRoomInfoDone(event);
/** * Invoked in response to a setCustomRoomData request. * @param event:LiveRoom */ onSetCustomRoomDataDone(event);
/** * Invoked in response to add property to any room * @param event:LiveRoom */ onUpdatePropertyDone(event);
/** * Invoked in response to a deleteRoom request. * @param event:Room */ onDeleteRoomDone(event);
/** * Invoked in response to a getAllRooms request. * @param event:AllRoomsEvent */ onGetAllRoomsDone(event);
/** * Invoked in response to a createRoom request. * @param event:Room */ onCreateRoomDone(event);
/** * Invoked in response to a getOnlineUsers request. * @param event:AllUsersEvent */ onGetOnlineUsersDone(event);
/** * Invoked in response to a getLiveUserInfo request. * @param event:LiveUser */ onGetLiveUserInfoDone(event);
/** * Invoked in response to a setCustomRoomData request. * @param event:LiveUser */ onSetCustomUserDataDone(event);
/** * Invoked in response to a getMatchMaking Rooms request. * @param event:MatchedRoomEvent */ onGetMatchedRoomsDone(event);
/** * Invoked in response to a joinLobby request. * @param event:Lobby */ onJoinLobbyDone(event);
/** * Invoked in response to a leaveLobby request. * @param event:Lobby */ onLeaveLobbyDone(event);
/** * Invoked in response to a subscribeLobby request. * @param event:Lobby */ onSubscribeLobbyDone(event);
/** * Invoked in response to a UnSubscribeLobby request. * @param event:Lobby */ onUnSubscribeLobbyDone(event);
/** * Invoked in response to a getLiveLobbyInfo request. * @param event:LiveLobby */ onGetLiveLobbyInfoDone( event);
/** * Result of SendUpdatePeers request. The result value maps to a WarpResponseResultCode * @param result:number */ onSendUpdateDone(result);
/** * Result of SendChat request. The result value maps to a WarpResponseResultCode * @param result:number */ onSendChatDone(result);
/** * Result of SendPrivateChat request. The result value maps to a WarpResponseResultCode * @param result:number */ onSendPrivateChatDone(result);
/** * Invoked when a room is created. Lobby subscribers will receive this. * @param event:Room */ onRoomCreated(event);
/** * Invoked when a room is deleted. Lobby subscribers will receive this. * @param event:Room */ onRoomDestroyed(event);
/** * Invoked when a user leaves a room. Lobby and the concerned room subscribers * will receive this. * @param event:Room * @param username:String */ onUserLeftRoom(event, username);
/** * Invoked when a user joins a room. Lobby and the concerned room subscribers * will receive this. * @param event:Room * @param username */ onUserJoinedRoom(event, username);
/** * Invoked when a user leaves a lobby. Lobby subscribers will receive this. * @param event:Lobby * @param username */ onUserLeftLobby(event, username);
/** * Invoked when a user joins a lobby. Lobby subscribers will receive this. * @param event:Lobby * @param username */ onUserJoinedLobby(event, username);
/** * Invoked when a joined user sends a chat. Rooms subscribers will receive this. * @param event:Chat */ onChatReceived(event);
/** * Invoked when a joined user sends a updatePeers request. Rooms subscribers * will receive this. * @param update:Uint8Array */ onUpdatePeersReceived(update);
/** * Invoked when a user change room property. Lobby and the concerned room subscribers * will receive this. * @param username * @param properties * @param lockTable */ onUserChangeRoomProperty(username,properties, lockTable);
/** * Invoked when a user makes a move in a turn based room * @param move:Move */ onMoveCompleted(move);
/** * Invoked in response to a sendMove request. * @param event:number */ onSendMoveDone(event);
/** * Invoked in response to a startGame request. * @param event:number */ onStartGameDone(event);
/** * Invoked in response to a stopGame request. * @param event:number */ onStopGameDone(event);
/** * Invoked in response to a onGetMoveHistoryDone request. * @param res:number * @param moves:Move[] */ onGetMoveHistoryDone(res, moves);
/** * Invoked when a game starts * @param sender:string * @param room:string * @param nextTurn:string */ onGameStarted(sender, room, nextTurn);
/** * Invoked when game stops. * @param sender:string * @param room:string */ onGameStopped(sender, room);