gevent-websocket · PyPI
https://pypi.org/project/gevent-websocket12.03.2017 · Websocket handler for the gevent pywsgi server, a Python network library Project description Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
gevent-ws · PyPI
https://pypi.org/project/gevent-ws11.05.2020 · gevent_ws.WebSocket You get this object by accessing wsgi.websocket property of the environment object. If it exists, it's a websocket connection; if it doesn't, it's an HTTP request. You can use "wsgi.websocket" in env to check this and route the request correctly. gevent_ws.WebSocket.receive ()