def websocket_connect(url, io_loop=None, callback=None, connect_timeout=None):
 if (io_loop is None):
  io_loop = IOLoop.current()
 request = httpclient.HTTPRequest(url, connect_timeout=connect_timeout)
 request = httpclient._RequestProxy(request, httpclient.HTTPRequest._DEFAULTS)
 conn = WebSocketClientConnection(io_loop, request)
 if (callback is not None):
  io_loop.add_future(conn.connect_future, callback)
 return conn.connect_future

def websocket_connect ( url , io_loop = None , callback = None , connect_timeout = None ) : if ( io_loop is None ) : io_loop = IOLoop . current ( ) request = httpclient . HTTPRequest ( url , connect_timeout = connect_timeout ) request = httpclient . _RequestProxy ( request , httpclient . HTTPRequest . _DEFAULTS ) conn = WebSocketClientConnection ( io_loop , request ) if ( callback is not None ) : io_loop . add_future ( conn . connect_future , callback ) return conn . connect_future
client-side websocket support .