Jacob Rief
Jacob Rief
So, if I understand this properly, you want to reuse the same websocket, both for say, group and session-based communication from the same client's page. This however means that we...
From my point of view, there is some kind of misconception, if you use ws4redis like this. What you probably should do, is to post your data using Ajax and...
You can write to and read from Redis directly from Django. DRF certainly is a good starting point if you have to serialize your models, but sometimes its just enough...
> For example, I would like to call a function once the user is subscribed to its channel This can be done using these instructions: http://django-websocket-redis.readthedocs.org/en/latest/usage.html#subscribe-to-broadcast-notifications > and some other...
I'm not sure if this restriction applies to websockets as well, but Javascript sometimes applies a foreign origin policy.
I never used `werkzeug`, so I can't really say whats the problem. You're encountering this problem in debug mode. There ws4redis hijacks the main loop if the URL starts with...
> As per the comment in https://github.com/Natureshadow/sass_mwe/pull/1, the issue occurs when recompiling CSS during runtime, instead of properly building for deployment. I compile all my SCSS files and collect all...
> But how can I proactively respond to the receipt of this event? Do I need a loop somewhere (e.g. a celery task) that continuously looks for these keys? Yes,...
That would be possible, but quite dangerous. In addition to key-value-pairs, Redis also offers key-list-of-values. However, such a list could become very big, if a client continuously sends some data....
> Currently for each ws request, it goes through django session middleware for authentication, Yes, but the complete session data is fetched from Redis, so I don't see any big...