test[net]: net websocket test

This commit is contained in:
sun
2023-10-25 14:56:01 +08:00
parent 622f822576
commit 57b6ba8073
@@ -35,7 +35,7 @@ public class WebsocketServerPacketController {
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);
}