-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
博主为啥自己写以下接口
void inRoom(UserInCache user);
void outRoom(long userId);
void startGame();
void exitThisRound(long userId);
void addCost(long userId, int cost);
void openThisRound(long userId);
而不用自带的
joinRoom() 加入到指定房间。
leaveRoom() 从指定房间离开。
getSessionId()方法,返回由UUID生成的唯一标识。
getAllRooms() 返回当前客户端所在的room名称列表。
sendEvent(eventname,data) 向当前客户端发送事件。
Metadata
Metadata
Assignees
Labels
No labels