mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Исправлена работа приема ping запросов у клиентской части вебсокетов
This commit is contained in:
parent
539e98bf5a
commit
aa1be6a23f
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Except
|
||||||
LogHelper.dev("Message: %s", textFrame.text());
|
LogHelper.dev("Message: %s", textFrame.text());
|
||||||
// uncomment to print request
|
// uncomment to print request
|
||||||
// logger.info(textFrame.text());
|
// logger.info(textFrame.text());
|
||||||
|
} else if ((frame instanceof PingWebSocketFrame)) {
|
||||||
|
frame.content().retain();
|
||||||
|
ctx.channel().writeAndFlush(new PongWebSocketFrame(frame.content()));
|
||||||
|
//return;
|
||||||
} else if (frame instanceof PongWebSocketFrame) {
|
} else if (frame instanceof PongWebSocketFrame) {
|
||||||
} else if (frame instanceof CloseWebSocketFrame)
|
} else if (frame instanceof CloseWebSocketFrame)
|
||||||
ch.close();
|
ch.close();
|
||||||
|
|
Loading…
Reference in a new issue