jonathan-s / django-sockpuppet

Build reactive applications with the django tooling you already know and love.
https://github.com/jonathan-s/django-sockpuppet
MIT License
450 stars 22 forks source link

Subscriptions for other things than sessionid #6

Closed jonathan-s closed 4 years ago

jonathan-s commented 4 years ago

Currently we use the session id as a subscription mechanism, frontend connects to the backend through websockets and subscribes to a group which is their session id.

It would be nice to have this is a default, but it should be possible to subscribe to other things as well. Right now I don't think it would be possible to create a chat feature as it is.

This would allow for a developer to create chat apps etc, which isn't possible right now.

jonathan-s commented 4 years ago

A reflex should be able to put identify what kind channel id is used to send an identifier. Default will be session_id. You could change this to a string or a function. Create a function that can be overridden.