Hi All,
I've started experimenting with integrating WebSockets into Pyramid applications and came up with this framework/library for implementing them:
https://gitlab.com/landreville/rbow
I haven't used it in a production application yet. Right now I'm looking for some feedback if this seems useful and if there are any ideas for improving this.
In general it runs an ASGI application that wraps the Pyramid app and uses Venusian to register websocket "views". These are classes that manage the websocket functionality. They also provide options for working with websockets asynchronously, synchronously, or with a Pyramid request (kinda).
Lastly it also provides "channels" that can send messages to all websockets subscribed to a channel and can call a function to send data periodically (such as grabbing stats and sending them to the clients every 5 seconds).
Thanks for any feedback,
Landreville