메세지 형식
"sender":"user_id",
"type":"cmd",
"arg1":"",
"arg2":""
Sender→유저
Target→online_users 중 이 사람이 친구인 사람들
"sender":"user_id",
"type":"status",
"arg1":"online" (online / offline)
Sender→방에 들어갔을때,
Target→everyone
"sender":"user_id", // 필요없음
"type":"game_list",
[
{
"roomName": "퐉수환 기여웡",
"roomLimits": "2",
"participaints": "2",
"gameType": "DUAL", [DUAL, TOURNAMENT]
"isPrivate": "true",
"isActive" : "true" // true 가 게임 중
}
,
..... 여러개
]
Sender→방장
Target→everyone
채팅,
점수바뀌는거,