1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Configuring socket.io a bit.

This commit is contained in:
Tim Düsterhus 2012-04-27 16:20:41 +02:00
parent f5d9044d4b
commit d76cbbcfb4

View File

@ -21,6 +21,17 @@ class Server
@socket = io.listen config.port @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((() -> setInterval((() ->
@socket.sockets.emit 'newMessage' @socket.sockets.emit 'newMessage'
).bind(@), 5000) ).bind(@), 5000)