Skip to content

Commit 34df9ff

Browse files
committed
changed ws to socket
1 parent 24ba581 commit 34df9ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server_interface/server_interface.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
this.command = command;
44
}
55
window.CardshifterServerAPI = {
6-
ws: null,
6+
socket: null,
77
messageTypes: {
88
LoginMessage: function(username) {
99
this.username = username;
@@ -80,11 +80,11 @@
8080
types.InviteResponse.prototype = new Message("inviteResponse");
8181
types.PlayerConfigMessage = new Message("playerconfig");
8282

83-
var ws = new WebSocket("ws" + (isSecure ? "s" : "") + "://" + server);
84-
this.ws = ws;
83+
var socket = new WebSocket("ws" + (isSecure ? "s" : "") + "://" + server);
84+
this.socket = socket;
8585
},
8686
sendMessage: function(message) {
87-
this.ws.send(JSON.stringify(message));
87+
this.socket.send(JSON.stringify(message));
8888
}
8989
};
9090
})(Function("return this")());

0 commit comments

Comments
 (0)