From d76cbbcfb46c02bd75ace397d1665f94b3fb88ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 Apr 2012 16:20:41 +0200 Subject: [PATCH] Configuring socket.io a bit. --- .../lib/server.coffee | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/file/acp/be.bastelstu.wcf.chat.serverPush/lib/server.coffee b/file/acp/be.bastelstu.wcf.chat.serverPush/lib/server.coffee index 4e31a94..1fac265 100644 --- a/file/acp/be.bastelstu.wcf.chat.serverPush/lib/server.coffee +++ b/file/acp/be.bastelstu.wcf.chat.serverPush/lib/server.coffee @@ -21,6 +21,17 @@ class Server @socket = io.listen config.port + @socket.set 'log level', 1 + @socket.set 'browser client etag', true + @socket.set 'browser client minification', true + @socket.set 'browser client gzig', true + + @socket.configure 'development', (() -> + @socket.set 'log level', 3 + @socket.set 'browser client etag', false + @socket.set 'browser client minification', false + ).bind(@) + setInterval((() -> @socket.sockets.emit 'newMessage' ).bind(@), 5000)