Open
Conversation
# added [WSocket](https://github.com/Ksengine/wsocket) to list ## Simple WSGI HTTP + Websocket Server, Framework, Middleware And App. ## Includes - Server(WSGI) included - works with any WSGI framework - Middleware - adds Websocket support for any WSGI framework - Framework - simple Websocket WSGI web application framework - App - Event based app for Websocket communication **When external server used some clients like Firefox requires `http 1.1` Server. Middleware, Framework, App** - Handler - adds Websocket support to [wsgiref](https://docs.python.org/3/library/wsgiref.html "python builtin WSGI server")(python builtin WSGI server) - Client -Coming soon... ## Common Features - only single file less than 1000 lines - websocket sub protocol supported - websocket message compression supported (works if client asks) - receive and send pong and ping messages(with automatic pong sender) - receive and send binary or text messages - works for messages with or without mask - closing messages supported - auto and manual close ## Alternatives ### Non WSGI - [Autobahn](http://crossbar.io/autobahn/) - huge with extras - [websocket-client](https://github.com/websocket-client/websocket-client) - client only no server -[websockets](https://pypi.org/project/websockets/) - python2 not supported ### WSGI - [Django Channels](https://channels.readthedocs.io/en/stable/) - only for Django. but WSocket middleware can add support for any WSGI framework. - [Flask-SocketIO](https://flask-socketio.readthedocs.io/en/latest/) - only for Flask. - [gevent-websocket](https://pypi.org/project/gevent-websocket/) - only for Gevent Server - [ws4py](https://github.com/Lawouach/WebSocket-for-Python) - works with few servers. but WSocket works with many servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added WSocket to list
Simple WSGI HTTP + Websocket Server, Framework, Middleware And App.
Includes
When external server used some clients like Firefox requires
http 1.1Server. Middleware, Framework, AppCommon Features
Alternatives
Non WSGI
WSGI