Refactor socket.io controller
This commit is contained in:
parent
107155a661
commit
0118a6fb15
10 changed files with 480 additions and 253 deletions
|
|
@ -40,6 +40,14 @@ Callbacks = {
|
|||
scrollChat();
|
||||
},
|
||||
|
||||
// Socket.IO error callback
|
||||
error: function (msg) {
|
||||
$("<div/>")
|
||||
.addClass("server-msg-disconnect")
|
||||
.text("Unable to connect: " + msg)
|
||||
.appendTo($("#messagebuffer"));
|
||||
},
|
||||
|
||||
errorMsg: function(data) {
|
||||
if (data.alert) {
|
||||
alert(data.msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue