Re: Server Sent Event to a specific user

2013-12-29 Thread Mike Dewhirst
On 30/12/2013 12:59pm, Thai Tran wrote: Yes, that was what I thought. But letting the user subscribe to a channel without any validation / authorization is a bit scary. That is why I wanna push the message based on the user session, not through a user name or strings like that If timing require

Re: Server Sent Event to a specific user

2013-12-29 Thread Thai Tran
Yes, that was what I thought. But letting the user subscribe to a channel without any validation / authorization is a bit scary. That is why I wanna push the message based on the user session, not through a user name or strings like that On 12/30/2013 2:03 AM, Nevio Vesic wrote: Well You can

Re: Server Sent Event to a specific user

2013-12-29 Thread Nevio Vesic
Well You can always send custom events for some specific channel. Example: socket.on("global_event", function(channel, data) {}); socket.on("user_XYZ", function(channel, data) {}); emit_to_channel('some_room', 'gobal_event', 'hello') emit_to_channel('some_room', 'user_XYZ', 'hello XYZ') I unders

Server Sent Event to a specific user

2013-12-29 Thread Thai Tran
Hi, I am working on a message sending/reading app atm. Is there any way to push a message to a particular user session by using Redis and SSE ? I am using the tutorial at https://github.com/fcurella/django-push-demo and it works great with the current setup (which means I can send the whole bunks