Keep alive

  1. Login 이 성공되어 있지 않다면 keepalive 호출시 websocket 연결이 자동으로 끊긴다.

  2. 20초 timeout 되면 websocket 연결이 자동으로 끊긴다. 10초 주기로 keepalive 권장.

Req/Res
Protocol
Desc.

req

{
    "type" : "REQ_KEEPALIVE",
    "data" : {
        "cur_ts" : 1666266644000
    }
}

res

{
  "type" : "RES_KEEPALIVE",
  "data" : {
    "message" : "success",
    "return" : 0,
    "value" : {
      "cur_ts" : 1671519251949
    }
  }
}

key
data type
desc.

cur_ts

int64

현재 시간 (ms)

Last updated