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 b0c0170 commit 622f822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void startClient() throws Exception {
var context = new ClassPathXmlApplicationContext("config.xml");

var webSocketClientProtocolConfig = WebSocketClientProtocolConfig.newBuilder()
.webSocketUri("http://127.0.0.1:9000/websocket")
.webSocketUri("ws://127.0.0.1:9000/websocket")
.build();

var client = new WebsocketClient(HostAndPort.valueOf("127.0.0.1:9000"), webSocketClientProtocolConfig);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class WebsocketServerTest {
public void startServer() {
var context = new ClassPathXmlApplicationContext("config.xml");

var server = new WebsocketServer(HostAndPort.valueOf("127.0.0.1:9000"));
var server = new WebsocketServer(HostAndPort.valueOf("0.0.0.0:9000"));
server.start();

ThreadUtils.sleep(Long.MAX_VALUE);
Expand Down

0 comments on commit 622f822

Please sign in to comment.