sendMessage(authMsg, channel, out);
}
private void handle(WebSocketPacketMessage webSocketPacketMessage, Channel channel, ByteBuf out) throws IOException {
encoder.encodePacket(webSocketPacketMessage.getPacket(), out);
WebSocketFrame res = new TextWebSocketFrame(out);
log.trace("Out message: {} sessionId: {}",
out.toString(CharsetUtil.UTF_8), webSocketPacketMessage.getSessionId());
channel.writeAndFlush(res);
if (!out.isReadable()) {
out.release();