i use old skool regex routers....i added the following to routes_in:
('/_ah/channel/(?P<f>.*)', '/<appname>/channel/$f'), #channel
messages
FWIW i tried to use the channel API but failed miserably. i did not
reliably get disconnect messages, and channels often closed before the
timeout and i was unable to detect and reopen them. i went back to just
refreshing the whole page every X sconds.
cfh
On Wednesday, August 22, 2012 7:33:04 AM UTC-7, Sushant Taneja wrote:
>
> Hi,
>
> As per the GAE channel API documentation, for tracking client connections,
> I need to monitor the URLs /_ah/channel/connected and
> /_ah/channel/disconnected.
> How do I map these to web2py URLs ?
>
> I am guessing some changes will be needed in routes.py.
> I am currently using web2py 1.99.7 (latest stable version)
>
> Thanks,
> Sushant
>
--