You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was some issues when using the minifier ($debug = false). They were caused by missing semicolons (don't ask). So, now minifying should work like a charm.
Copy file name to clipboardexpand all lines: js/src/socket.js
+2-32
Original file line number
Diff line number
Diff line change
@@ -54,41 +54,11 @@ function onMessage(e){
54
54
}
55
55
56
56
functiononError(e){
57
-
// from http://stackoverflow.com/a/28396165
58
-
varreason;
59
-
// See http://tools.ietf.org/html/rfc6455#section-7.4.1
60
-
if(event.code==1000)
61
-
reason="Normal closure, meaning that the purpose for which the connection was established has been fulfilled.";
62
-
elseif(event.code==1001)
63
-
reason="An endpoint is \"going away\", such as a server going down or a browser having navigated away from a page.";
64
-
elseif(event.code==1002)
65
-
reason="An endpoint is terminating the connection due to a protocol error";
66
-
elseif(event.code==1003)
67
-
reason="An endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message).";
68
-
elseif(event.code==1004)
69
-
reason="Reserved. The specific meaning might be defined in the future.";
70
-
elseif(event.code==1005)
71
-
reason="No status code was actually present.";
72
-
elseif(event.code==1006)
73
-
reason="The connection was closed abnormally, e.g., without sending or receiving a Close control frame";
74
-
elseif(event.code==1007)
75
-
reason="An endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [http://tools.ietf.org/html/rfc3629] data within a text message).";
76
-
elseif(event.code==1008)
77
-
reason="An endpoint is terminating the connection because it has received a message that \"violates its policy\". This reason is given either if there is no other sutible reason, or if there is a need to hide specific details about the policy.";
78
-
elseif(event.code==1009)
79
-
reason="An endpoint is terminating the connection because it has received a message that is too big for it to process.";
80
-
elseif(event.code==1010)// Note that this status code is not used by the server, because it can fail the WebSocket handshake instead.
81
-
reason="An endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake. <br /> Specifically, the extensions that are needed are: "+event.reason;
82
-
elseif(event.code==1011)
83
-
reason="A server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.";
84
-
elseif(event.code==1015)
85
-
reason="The connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).";
86
-
else
87
-
reason="Unknown reason (Server is probably down)";
88
-
57
+
varreason="Unknown reason (Server is probably down)";
0 commit comments