I want to add WebSocketServerProtocolHandler but It can not handle http message in Echo Test ([https://www.websocket.org/echo.html]).
Because this handler replaces HttpServerCodec into WebSocketFrameCodec.
If I use this handler, I don't need to write handshake method.
I want to handle websocket endpoint well.
ex) URI: "/websocket" or "/websocket?encoding=text" or "/websocket/example"
These endpoints all mean "request websocket"?
I added websocket handler first. I will add service interface later.
Websocket Process
Open Handshake : It occurs in
DssHttpRequestHandler.java
Sending and Receiving Data Frame (Current: Echo message) : It occurs in
DssWebSocketHandler.java
Close connection
I tested it works fine using Jetty websocket client or Echo Test ([https://www.websocket.org/echo.html])(https://www.websocket.org/echo.html).
Here is test logs.
Code Review
I want to add
WebSocketServerProtocolHandler
but It can not handle http message in Echo Test ([https://www.websocket.org/echo.html]).Because this handler replaces HttpServerCodec into WebSocketFrameCodec.
If I use this handler, I don't need to write handshake method.
I want to handle websocket endpoint well.
ex) URI: "/websocket" or "/websocket?encoding=text" or "/websocket/example"
These endpoints all mean "request websocket"?
Thank you for reading.