Skip to content

Commit

Permalink
fix: fix PongWebSocketFrame error
Browse files Browse the repository at this point in the history
  • Loading branch information
liguobao committed Mar 13, 2024
1 parent 4d7bf37 commit b710dfe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ protected void channelRead0(ChannelHandlerContext ctx, WebSocketFrame frame) thr
} else {
recorder.recordEvent("Continuation frame received without initial frame.");
}
} else {
} else if (frame instanceof PongWebSocketFrame) {
recorder.recordEvent("Pong frame received");
return;
}
else {
error("error ws request: " + frame.getClass());
return;
}
Expand Down

0 comments on commit b710dfe

Please sign in to comment.