Skip to content

Commit

Permalink
test[net]: net websocket test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Oct 25, 2023
1 parent 622f822 commit 57b6ba8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void atWebsocketHelloRequest(Session session, WebsocketHelloRequest reque
logger.info("receive [packet:{}] from browser", JsonUtils.object2String(request));

var response = new WebsocketHelloResponse();
response.setMessage("Hello, this is the websocket server!");
response.setMessage("Hello, this is the websocket server! -> " + request.getMessage());

NetContext.getRouter().send(session, response);
}
Expand Down

0 comments on commit 57b6ba8

Please sign in to comment.