Skip to content

Instantly share code, notes, and snippets.

jfromaniello / gist:4087861
Last active February 6, 2022 03:53
socket-io.client send the cookies!
View gist:4087861
* Little example of how to use ```socket-io.client``` and ```request``` from node.js
* to authenticate thru http, and send the cookies during the handshake.
var io = require('');
var request = require('request');
* This is the jar (like a cookie container) we will use always