Skip to content

Commit

Permalink
update: using ws
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowanlu committed Apr 14, 2024
1 parent cc5dcdd commit 94cf0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ws/WS.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const WS = { socket: null, open: null, message: null, close: null, error: null, isConnected: false };
WS.connect = function () {
this.isConnected = false;
this.socket = new WebSocket("wss://61.171.51.135:20023/");
this.socket = new WebSocket("ws://61.171.51.135:20023/");
this.socket.addEventListener("open", (event) => {
if (this.open) {
this.open(event);
Expand Down

0 comments on commit 94cf0b9

Please sign in to comment.