From be05a0699f43b127432a52ad3a46bf149ad506a3 Mon Sep 17 00:00:00 2001 From: Roy Hyunjin Han Date: Sun, 3 Nov 2013 17:23:09 -0800 Subject: [PATCH] Updated README --- README.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index a96918d..42b504e 100644 --- a/README.rst +++ b/README.rst @@ -113,13 +113,15 @@ Open secure websockets (HTTPS / WSS) behind a proxy. :: secure=True, proxies={'https': 'https://proxy.example.com:8080'}) -Specify custom headers thanks to the `requests`_ library. :: +Specify params, headers and cookies thanks to the `requests`_ library. :: from socketIO_client import SocketIO from base64 import b64encode SocketIO('localhost', 8000, - headers={'Authorization': 'Basic ' + b64encode('username:password')}) + params={'q': 'qqq'}, + headers={'Authorization': 'Basic ' + b64encode('username:password')}, + cookies={'a': 'aaa'}) License