Setting Up

In notebook:
FrontEndMasters Real-Time Web with Node.js
Created at:
JavaScript libraries
3:52:39 - 4:02:27 Setting Up is a Node module that enables real-time bidirectional communication in the browser. It's built on top of the native HTML5 Web Socket API. Kyle shows how to install and set up with the current Node inital http request for a websocket
response an upgrade protocol to persistent websocket connection

you want to be using SSL is an extension to websockets: handshakes (that the server received your message)
for his example, at the time of the workshop he suggests to use:
​npm install​ 

​var io = require("").listen(http_serv);

(where ​var http_serv = http.createServer(handleHTTP).listen(port, host);​ ) 
see note:Node as a Webserver )

note: the ​var io​ should point to the socket library and not the module, hence we have to call ​.listen(http_serv);​ when assigning the module to ​io​ 
it will hijack the httpServer and listen for websockets requests 
the handleHTTP​ will continue to function

then in the client: 
​<script src="/"></script>​  the above hijacking will automatically handle the request for file
then you get a global called ​io from