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:
parent
51683c9484
commit
fadfb5ce61
@ -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(@)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user