Fix #62
This commit is contained in:
parent
0c8dda1316
commit
0c6d4cd4d7
1 changed files with 7 additions and 0 deletions
|
|
@ -4,12 +4,19 @@ import re
|
|||
import requests
|
||||
import six
|
||||
import socket
|
||||
import sys
|
||||
import time
|
||||
import websocket
|
||||
|
||||
from .exceptions import SocketIOError, ConnectionError, TimeoutError
|
||||
|
||||
|
||||
if not hasattr(websocket, 'create_connection'):
|
||||
sys.exit("""Incompatible websocket implementation
|
||||
- Please make sure that you have websocket-client installed
|
||||
- Please remove other websocket implementations""")
|
||||
|
||||
|
||||
TRANSPORTS = 'websocket', 'xhr-polling', 'jsonp-polling'
|
||||
BOUNDARY = six.u('\ufffd')
|
||||
TIMEOUT_IN_SECONDS = 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue