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 28874f8..664e2a5 100644 --- a/file/acp/be.bastelstu.wcf.chat.serverPush/lib/server.coffee +++ b/file/acp/be.bastelstu.wcf.chat.serverPush/lib/server.coffee @@ -40,7 +40,9 @@ class Server initUnixSocket: () -> log 'Initializing Unix-Socket' socket = net.createServer ((c) -> - @socket.sockets.emit 'newMessage' + setTimeout (() -> + @socket.sockets.emit 'newMessage' + ).bind(@), 20 c.end() ).bind(@)