Skip to content

Conversation

@sstto
Copy link
Contributor

@sstto sstto commented Jan 25, 2024

채팅 DISCONNECT, PING 구현

@sstto sstto requested a review from hjlim7831 January 25, 2024 15:38
@sstto sstto self-assigned this Jan 25, 2024
fun refreshPingTimer(session: WebSocketSession) {
sessionTimer[session]?.cancel()
val timer = Timer()
timer.schedule(PingTimerTask(session), 30 * 1000) // 30초 후에 만료.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 timer가 시간이 다 되면 PingTimerTask가 작동하는 거인거죠? 이런 것도 있군요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES! 저도 첨봄 ㅋㅋ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants