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

Send notification after 20ms

This commit is contained in:
Tim Düsterhus 2012-04-27 21:50:41 +02:00
parent 51683c9484
commit fadfb5ce61

View File

@ -40,7 +40,9 @@ class Server
initUnixSocket: () -> initUnixSocket: () ->
log 'Initializing Unix-Socket' log 'Initializing Unix-Socket'
socket = net.createServer ((c) -> socket = net.createServer ((c) ->
setTimeout (() ->
@socket.sockets.emit 'newMessage' @socket.sockets.emit 'newMessage'
).bind(@), 20
c.end() c.end()
).bind(@) ).bind(@)