game-rooms
{
[roomId]: {
"title": "aa",
"gameId": 1,
"minimumPeople": 2,
"maximumPeople": 4,
"isPrivate": false,
"password": "test",
"participants": [
{
"email": "abc@naver.com",
"nickname": "블티",
"profileImage": "/profile/default.png",
"score": 0,
"userId": 1,
"roomId": "lobby"
}
]
}
}
online-users
{
[String(userId)]: {
"email": "abc@naver.com",
"nickname": "블티",
"profileImage": "/profile/default.png",
"score": 0,
"connected": true,
}
}
socket-id-to-user-info
{
[socketId]: {
"email": "abc@naver.com",
"nickname": "블티",
"profileImage": "/profile/default.png",
"score": 0,
"userId": 1,
"roomId": "lobby",
"connected": true,
}
}
play-data
{
[roomId]: {
gameId: 1,
round: 1,
answer: "자파리",
state: CatchMindState.WAIT | CatchMindState.DRAW | CatchMindState.RESULT,
drawerId: [userId2],
scores: [
{
[userId1]: 0,
[userId2]: 10,
}
]
totalScores: [
{
[userId1]: 20,
[userId2]: 30,
}
]
}
}