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:
parent
f5d9044d4b
commit
d76cbbcfb4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user