This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
from urllib.parse import urlparse | |
# make sure PySocks(https://github.com/Anorov/PySocks) is installed, commit version >= 1f56ca | |
import socks | |
import ssl | |
# make sure ws4py is installed, version >= 0.4.2 | |
from ws4py.exc import HandshakeError | |
from ws4py.client import WebSocketBaseClient |