Well, you'd want the database to just fetch the last 25 or so messages when 
the link loads for the first time.
Your browser probably needs to refresh. 

I use firebase.com for my realtime chat  / database backend. It works 
great. I built a chat system that works fine, now I'm working on a project 
management site that uses firebase as a backend and you get realtime 
updates of projects.

On Sunday, December 30, 2012 2:58:56 PM UTC-7, HittingSmoke wrote:
>
> I was randomly tinkering around and discovered websocket_messaging.py
>
> I've got that running and it appears to be receiving messages from the 
> sample functions but I can't seem to get them to actually display in the 
> browser. I was wondering if there was some sort of nice, canned websocket 
> javascript client that can just be added to a web2py app and pointed at 
> websocket_messaging.py.
>
> Has anyone used websocket_messaging.py it to build a more robust chat 
> server that ties in with auth? The key/token thing confused me a bit.
>
> How do you store messages using websocket_messaging.py? The script size in 
> memory could get quite huge. Writing the history to a database table is the 
> first option that comes to mind but at first glance I don't see any way to 
> purge all or part of the stored input of the script. Is this something that 
> would need to be done within tornado (which I have absolutely no experience 
> with)?
>
> I'm still very new to all of this and plan on eventually building a simple 
> message board app. Since IRC is becoming less and less common I'd like to 
> create a chat system to pair it with. Does anyone have any experience with 
> websocket_messaging.py they'd like to share, or other recommendations?
>
> I've watched the video that's circulating the group but it was never 
> translated into English so it hasn't been much use to me.
>

-- 



Reply via email to