Middleware
convert any WSGI compatible web framework to Websocket+HTTP framework using middleware.
Last updated
Was this helpful?
convert any WSGI compatible web framework to Websocket+HTTP framework using middleware.
Last updated
Was this helpful?
works with many WSGI compatible servers
can used with any compatible web framework
Flask, Django, Pyramid, Bottle, ... supported
This middleware adds variable to environment dictionary.
example with :
GUID
- unique ID to generate websocket accept key
SUPPORTED_VERSIONS
- 13, 8 or 7
websocket_class
- "wsgi.websocket"
in WSGI Environ
you should use HTTP version 1.1
Server with your framework for some clients like Firefox browser
for examples on other web frameworks visit folder