I'll be glad to take a look. I just might be able to help since I'd need it myself anyway. Will do my best.
On Wednesday, May 6, 2015 at 6:17:50 PM UTC+1, Richard wrote: > > Last year we develop over websocket contrib a tool like that and it turns > that we had to create a thread that was doing that, I mean maintain a list > of connected user... We create a basic back and forth websocket message > format so we can ping every users connected and wait for a response from > them if they are still online... This give you the basic idea how to > implement something... At start I expect that there were a build solution > for this in websocket contrib and toranado, but the person that I mandate > for analysing that and found a solution said that wasn't available and > implement something... So, I don't know if the path he follow was the right > one. But as far as I have been able to go throught that topic, websocket > contrib is noting more then a basic connecting tool that allow you to start > multiplexing using tornado from web2py... > > If you feel you are able to review the code of what we did and improve it, > I can share it here, so I know if we take the right path or not... Since > the person who develop that is gone, I can't help more than sharing with > you her works... > > Richard > > On Wed, May 6, 2015 at 6:58 AM, Samuel Sowah <saso...@gmail.com > <javascript:>> wrote: > >> Hello, >> Please if I'd like to keep track of users who are connected to a >> particular group, for example >> <script> >> $(document).ready(function(){ >> var data; >> $.web2py.web2py_websocket('ws:// >> official-notebook.com:8888/realtime/mygroup >> ',function(e){data=eval('('+e.data+')')}); >> }); >> </script> >> >> so that I can list the connected users, and then remove them from the >> list when they disconnect, how would I achieve that? >> >> -- >> 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 <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.