(self, url, channel=channel, wschannel="ws", headers=None)
:param url: the URL to connect to.
        :param channel: the channel used by this component
        :param wschannel: the channel used for the actual WebSocket
            communication (read, write, close events)
        :param headers: additional headers to be passed with the
            WebSocket setup HTTP request
:param url: the URL to connect to.
        :param channel: the channel used by this component
        :param wschannel: the channel used for the actual WebSocket
            communication (read, write, close events)
        :param headers: additional headers to be passed with the
            WebSocket setup HTTP request
: param url : the URL to connect to . : param channel : the channel used by this component : param wschannel : the channel used for the actual WebSocket communication ( read write close events ) : param headers : additional headers to be passed with the WebSocket setup HTTP request
def __init__(self, url, channel=channel, wschannel="ws", headers=None):
        """
        :param url: the URL to connect to.
        :param channel: the channel used by this component
        :param wschannel: the channel used for the actual WebSocket
            communication (read, write, close events)
        :param headers: additional headers to be passed with the
            WebSocket setup HTTP request
        """
        super(WebSocketClient, self).__init__(channel=channel)

        self._url = url
        self._headers = headers or {}
        self._response = None
        self._pending = 0
        self._wschannel = wschannel

        self._transport = TCPClient(channel=self.channel).register(self)
        HTTP(channel=self.channel).register(self._transport)
def __init__ ( self , url , channel = channel , wschannel = "ws" , headers = None ) : super ( WebSocketClient , self ) . __init__ ( channel = channel ) self . _url = url self . _headers = headers or { } self . _response = None self . _pending = 0 self . _wschannel = wschannel self . _transport = TCPClient ( channel = self . channel ) . register ( self ) HTTP ( channel = self . channel ) . register ( self . _transport )