From b6089a77020650fedfb757ac0a1111a04ea3eafb Mon Sep 17 00:00:00 2001 From: Alexey Khristov Date: Thu, 26 Nov 2015 11:28:12 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f710bbc..d740fe3 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,17 @@ https://github.com/socketio/socket.io-client/pull/587 ###socket.io-client running on nodejs +``` var newXhr = require('socket.io-client-cookie'); newXhr.setCookies('mycookie=something'); var socketIO = require('socket.io-client')('Somewhere only we now'); +``` ###socket.io +``` var cookieString = socket.request.headers.cookie; //You can use https://www.npmjs.com/package/socket.io-cookie to parse the cookies or something +```