We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ba581 commit 34df9ffCopy full SHA for 34df9ff
server_interface/server_interface.js
@@ -3,7 +3,7 @@
3
this.command = command;
4
}
5
window.CardshifterServerAPI = {
6
- ws: null,
+ socket: null,
7
messageTypes: {
8
LoginMessage: function(username) {
9
this.username = username;
@@ -80,11 +80,11 @@
80
types.InviteResponse.prototype = new Message("inviteResponse");
81
types.PlayerConfigMessage = new Message("playerconfig");
82
83
- var ws = new WebSocket("ws" + (isSecure ? "s" : "") + "://" + server);
84
- this.ws = ws;
+ var socket = new WebSocket("ws" + (isSecure ? "s" : "") + "://" + server);
+ this.socket = socket;
85
},
86
sendMessage: function(message) {
87
- this.ws.send(JSON.stringify(message));
+ this.socket.send(JSON.stringify(message));
88
89
};
90
})(Function("return this")());
0 commit comments