Updated README
This commit is contained in:
parent
f9e093efbb
commit
01f1d0d06c
1 changed files with 11 additions and 0 deletions
11
README.rst
11
README.rst
|
|
@ -109,10 +109,20 @@ Define different namespaces on a single socket. ::
|
|||
|
||||
Open secure websockets (HTTPS / WSS) behind a proxy. ::
|
||||
|
||||
from socketIO_client import SocketIO
|
||||
|
||||
SocketIO('localhost', 8000,
|
||||
secure=True,
|
||||
proxies={'https': 'https://proxy.example.com:8080'})
|
||||
|
||||
Specify custom headers thanks to the `requests`_ library. ::
|
||||
|
||||
from socketIO_client import SocketIO
|
||||
from base64 import b64encode
|
||||
|
||||
SocketIO('localhost', 8000,
|
||||
headers={'Authorization': 'Basic ' + b64encode('username:password')})
|
||||
|
||||
|
||||
License
|
||||
-------
|
||||
|
|
@ -129,6 +139,7 @@ Credits
|
|||
|
||||
|
||||
.. _socket.io: http://socket.io
|
||||
.. _requests: http://python-requests.org
|
||||
|
||||
.. _Guillermo Rauch: https://github.com/guille
|
||||
.. _socket.io specification: https://github.com/LearnBoost/socket.io-spec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue