matching server event protocol - SG-Finder/auth_server GitHub Wiki
Server On Event
event-name : connection
event-name : ack
{
"session_token" : "ajcihgasij913=",
"userId" : "gksxodnd007"
}
event-name : ready
event-name : disconnect
event-name : gameStart
event-name : sendMessage
{
"from": "gksxodnd007",
"message": "안녕 나는 코딩하는 오징어야"
}
Server Emit Event
event-name : authorized
{
"permit" : "true",
"afterEvent" : "none"
}
{
"permit" : "false",
"afterEvent" : "disconnect"
}
event-name : getData
{
"dataAccess" : "true",
"afterEvent" : "ready"
}
{
"dataAccess" : "false",
"afterEvent" : "disconnect"
}
event-name : entry
{
"entryUser" : "gksxodnd1",
"entryUserScore" : 152,
"entryUserTier" : "BRONZE"
}
event-name : leave
{
"leaveUser": "gksxodnd1"
"leaveUserScore" : 152,
"leaveUserTier" : "BRONZE"
}
event-name : matchingResult
{
"playersId" : [ "gksxodnd007", "gksxodnd3" ],
"roomId" : "dkasjohf-39"
}
event-name : receiveMessage
{
"from": "gksxodnd007",
"message": "안녕 나는 코딩하는 오징어야"
}
event-name : disconnect