def __init__(self, *args, url=None, timeout=None, sslopt=None,<EOL>http_proxy_host=None, http_proxy_port=None, http_proxy_auth=None, http_no_proxy=None,<EOL>reconnect_interval=None, log_level=None, **kwargs):
<EOL>self.q = Queue()<EOL>self.socket = None<EOL>self.url = url if url else '<STR_LIT>'<EOL>self.sslopt = sslopt if sslopt else {}<EOL>self.http_proxy_host = http_proxy_host<EOL>self.http_proxy_port = http_proxy_port<EOL>self.http_proxy_auth = http_proxy_auth<EOL>self.http_no_proxy = http_no_proxy<EOL>self.channel_configs = OrderedDict()<EOL>self.connected = Event()<EOL>self.disconnect_called = Event()<EOL>self.reconnect_required = Event()<EOL>self.reconnect_interval = reconnect_interval if reconnect_interval else <NUM_LIT:10><EOL>self.paused = Event()<EOL>self.ping_timer = None<EOL>self.ping_interval = <NUM_LIT><EOL>self.connection_timer = None<EOL>self.connection_timeout = timeout if timeout else <NUM_LIT:10><EOL>self.pong_timer = None<EOL>self.pong_received = False<EOL>self.pong_timeout = <NUM_LIT:30><EOL>self.log = logging.getLogger(self.__module__)<EOL>if log_level == logging.DEBUG:<EOL><INDENT>websocket.enableTrace(True)<EOL><DEDENT>self.log.setLevel(level=log_level if log_level else logging.INFO)<EOL>Thread.__init__(self)<EOL>self.daemon = True<EOL>self.bitfinex_config = None<EOL>
Initialize a WebSocketConnection Instance.

        :param data_q: Queue(), connection to the Client Class
        :param args: args for Thread.__init__()
        :param url: websocket address, defaults to v2 websocket.
        :param http_proxy_host: proxy host name.
        :param http_proxy_port: http proxy port. If not set, set to 80.
        :param http_proxy_auth: http proxy auth information.
                                tuple of username and password.
        :param http_no_proxy: host names, which doesn't use proxy. 
        :param timeout: timeout for connection; defaults to 10s
        :param reconnect_interval: interval at which to try reconnecting;
                                   defaults to 10s.
        :param log_level: logging level for the connection Logger. Defaults to
                          logging.INFO.
        :param kwargs: kwargs for Thread.__ini__()