niwibe/django-sse — pull request #4 by fcurella (2012-07-15 13:37:39+00:00)
Title: ``RedisQueueView`` and ``send_event`` can override the default redis channel

The use case is having different SSEs channels, separated maybe by user or session id, so that is possible to send user-specific events.

I've used the same pattern used for Django's CBV.

``RedisQueueView``'s subclasses can define a ``redis_channel`` property or a ``get_redis_channel`` method.

The convenience publishing method now accepts a third optional parameter specifying the channel.