Djano channels

169 views
Skip to first unread message

Najtsirk

unread,
Mar 17, 2016, 5:48:08 PM3/17/16
to web2py-users
https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django

Is there anything similar in web2py?

I read about comet messaging. How these two compare?

Thanks,
Najtsirk

pbreit

unread,
Mar 20, 2016, 2:15:11 AM3/20/16
to web2py-users

Ron Chatterjee

unread,
Mar 20, 2016, 10:42:41 AM3/20/16
to web2py-users
I haven't had a chance to go through the code but is it using multiple chat room or just one single room?

Richard Vézina

unread,
Mar 20, 2016, 11:41:25 AM3/20/16
to web2py-users
It just set websocket on... Then you have to implement your own protocol of communication...

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Najtsirk

unread,
Mar 20, 2016, 2:32:55 PM3/20/16
to web2py-users
Thanks!

Massimo Di Pierro

unread,
Mar 21, 2016, 1:19:27 AM3/21/16
to web2py-users
Supports multiple chat rooms. It is in the example in the code itself. It is very similar to the Django one.

Ron Chatterjee

unread,
Mar 24, 2016, 6:22:43 PM3/24/16
to web2py-users
You know if we can turn this into a audio video chat and conference application similar to web meeting?

Massimo Di Pierro

unread,
Mar 24, 2016, 6:43:48 PM3/24/16
to web2py-users
Theoretically yes. In practice it would not be nearly as good or efficient as webrtc. Just use webrtc for that.

Ron Chatterjee

unread,
Mar 27, 2016, 11:05:06 AM3/27/16
to web2py-users
https://m.youtube.com/watch?v=uBV_KKGzNqQ

Found that link that talks about it. But it uses flask. So for chatting use channels n realtime streaming n audio use webrtc. Learn something new everyday! Thank you massimo.

Message has been deleted

Massimo Di Pierro

unread,
Mar 27, 2016, 11:24:55 AM3/27/16
to web2py-users
The fact is webrtc is pure JS. It is from client to client. Wether you use Flask or Django or web2py or PHP or ASP to serve pages is irrelevant.

Massimo

Ron Chatterjee

unread,
Aug 27, 2016, 5:06:58 PM8/27/16
to web2py-users
Have anyone had a chance to test out websocket_messaging.py

It works out of box as long the websocket is running in the back but kind of confusing to see it only works on localhost:8888. Wondering if anyway to redirect all the messages based on url: app/room?  Seems only last messages are viewable in a pop up. Would be nice to have more workable examples like a chat room demo or one to one demo.  
Reply all
Reply to author
Forward
0 new messages