def connect_web_socket(): if 'wsgi.websocket' in request.environ: manage_web_socket(request.environ['wsgi.websocket']) else: logging.warning( 'request for websocket but websocket support not enabled; if running locally, use -s option' ) return '{}'
def old_connect_web_socket(): manage_web_socket(request.environ['wsgi.websocket']) return '{}'
def connect_web_socket(ws): manage_web_socket(ws)
def old_connect_web_socket(ws): manage_web_socket(ws)