Fixes #17
This commit is contained in:
parent
01f1d0d06c
commit
9a13cd5fb7
3 changed files with 5 additions and 7 deletions
|
|
@ -87,7 +87,7 @@ class BaseNamespace(object): # pragma: no cover
|
|||
|
||||
class SocketIO(object):
|
||||
|
||||
def __init__(self, host, port, secure=False, headers=None, proxies=None):
|
||||
def __init__(self, host, port, Namespace=BaseNamespace, secure=False, headers=None, proxies=None):
|
||||
"""
|
||||
Create a socket.io client that connects to a socket.io server
|
||||
at the specified host and port. Set secure=True to use HTTPS / WSS.
|
||||
|
|
@ -97,7 +97,7 @@ class SocketIO(object):
|
|||
"""
|
||||
self._socketIO = _SocketIO(host, port, secure, headers, proxies)
|
||||
self._namespaceByPath = {}
|
||||
self.define(BaseNamespace) # Define default namespace
|
||||
self.define(Namespace)
|
||||
|
||||
self._rhythmicThread = _RhythmicThread(
|
||||
self._socketIO.heartbeatInterval,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue