News for hackers. Stuff that matters.
Re:Turn any application that uses stdin/stdout into a WebSoc... by pmelendez on Tuesday December 10, 2013 @10:01AM (#6881038)
Sorry if the question is too basic (I don't code in Node.js) but where is the websocket handshaking and the envelop management on this?
Re:Turn any application that uses stdin/stdout into a WebSoc... by CGamesPlay on Tuesday December 10, 2013 @12:38PM (#6882164)
Creating a new server will start listening for connections, and the connection event will only be emitted after the handshake has finished. http://socket.io/ has more info on how the node api works.

    wss = new Server port: 8080
    wss.on 'connection', (ws) ->
Re:Turn any application that uses stdin/stdout into a WebSoc... by alexkus on Tuesday December 10, 2013 @12:02PM (#6881857)
{ Server } = require 'ws'