Chat can be hard. You might check out sockets:
https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py

And:
https://groups.google.com/forum/#!topic/web2py/RFVnoCLyyjs
https://groups.google.com/forum/#!topic/web2py/ABaQw0TYUsc

Web2py is my "go to" framework but if you are at all comfortable in other 
frameworks, you might try googling because there are lots of examples out 
there.

For example, Angular-Meteor:
http://www.angular-meteor.com/tutorials/whatsapp/

Django:
https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django

Rails:
https://medium.com/@dhh/rails-5-action-cable-demo-8bba4ccfc55e



On Sunday, March 27, 2016 at 8:37:02 PM UTC-7, Rgb Aston wrote:
>
> So I have created a db table with name 'messages' and fields= message, 
> sender, receiver,date_time where sender is auth.user_id by default and 
> unchangeable. date_time represents when the message was sent out.
> So when one user opens his message view he can see all his messages 
> (designed such a way that each sender's message is displayed separately and 
> sorted according to datetime.) But the problem is the page is still and to 
> get the updated thread of messages he will have to reload the page. How to 
> do it in such a way that he doesn't have to reload it always and the chat 
> system works like facebook and other sites.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to