(self, url, connection_payload=None, **ws_options)
:param url: ws:// or wss:// url to connect to
        :type url: str

        :param connection_payload: data to pass during initiation of the
          WebSocket connection. It's passed as ``"payload"`` key of the
          ``connection_init`` type message. **Authentication tokens** usually
          goes here.
        :type connection_payload: dict

        :param ws_options: options to pass to
          :func:`websocket._core.create_connection`.
        :type ws_options: dict
:param url: ws:// or wss:// url to connect to
        :type url: str
: param url : ws : // or wss : // url to connect to : type url : str
def __init__(self, url, connection_payload=None, **ws_options):
        '''
        :param url: ws:// or wss:// url to connect to
        :type url: str

        :param connection_payload: data to pass during initiation of the
          WebSocket connection. It's passed as ``"payload"`` key of the
          ``connection_init`` type message. **Authentication tokens** usually
          goes here.
        :type connection_payload: dict

        :param ws_options: options to pass to
          :func:`websocket._core.create_connection`.
        :type ws_options: dict
        '''
        self.url = url
        self.connection_payload = connection_payload
        self.ws_options = ws_options
        self.keep_alives = ['ka']
def __init__ ( self , url , connection_payload = None , * * ws_options ) : self . url = url self . connection_payload = connection_payload self . ws_options = ws_options self . keep_alives = [ 'ka' ]