From 0809c1c3a02943d51c6882039004365daa3e3920 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 5 Aug 2015 21:40:04 -0400 Subject: functioning chat --- public/js/lib/views/room/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/js/lib/views/room/chat.js') diff --git a/public/js/lib/views/room/chat.js b/public/js/lib/views/room/chat.js index 2c1140e..058d02d 100644 --- a/public/js/lib/views/room/chat.js +++ b/public/js/lib/views/room/chat.js @@ -45,7 +45,7 @@ var ChatView = View.extend({ msg.nick = user.username msg.date = +new Date this.add(msg) - app.socket.send("message", msg) + app.socket.emit("message", msg) }, empty: function(){ -- cgit v1.2.3-70-g09d2