5 ms·
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?
by pmelendez 13y ago
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?
- deleted 13y ago[deleted]
- alexkus 13y ago{ Server } = require 'ws'
- CGamesPlay 13y agoCreating a new server will start listening for connections, and the connection event will only be emitted after the handshake has finished. http://socket.io/ http://socket.io/ has more info on how the node api works. wss = new Server port: 8080 wss.on 'connection', (ws) ->