List Info

Thread: advices




advices
user name
2006-12-06 10:54:10
Alex Russell wrote:
> Hey all,
> 
> Greg will be happy to know that, despite my constant
distractions, I'm 
> mostly done with my rework of the JS client to handle
advices. I'm 
> wondering about some ambiguity in my spec writing,
though. In one 
> place, we note that the advice value for
"reconnect" can be a boolean, 
> and in another, we note that it should be one of 
> ["none", "retry",
"handshake", "recover"].
> 
> I think that the 4-choice is the right set in both
cases and we should 
> update the protocol doc accordingly, but I want to be
sure just in case 
> I've mis-remembered something.
> 
> Regards
> 


The advice does not appear to be working :-(

I still get loops like this:

=0=>[{"channel":"/meta/reconnect",&qu
ot;connectionType":"long-polling","clien
tId":"1lsgwk4onsllq","connectionId"
:"/meta/connections/1lsgwk4onsllq","timestamp
":"Wed Dec 06 11:51:50 CET
006","id":"c93x5wa"}]
<=1=[{"connectionId":"/meta/connections/1l
sgwk4onsllq","timestamp":"Wed Dec 06
11:51:50 CET 2006","error":"unknown
clientID","successful":false,"channel&qu
ot;:"/meta/reconnect","advice":{"re
connect":"handshake","interval":0}}
]
=0=>[{"channel":"/meta/reconnect",&qu
ot;connectionType":"long-polling","clien
tId":"1lsgwk4onsllq","connectionId"
:"/meta/connections/1lsgwk4onsllq","timestamp
":"Wed Dec 06 11:51:50 CET
2006","id":"c93x5wa"}]
<=1=[{"connectionId":"/meta/connections/1l
sgwk4onsllq","timestamp":"Wed Dec 06
11:51:50 CET 2006","error":"unknown
clientID","successful":false,"channel&qu
ot;:"/meta/reconnect","advice":{"re
connect":"handshake","interval":0}}
]
=0=>[{"channel":"/meta/reconnect",&qu
ot;connectionType":"long-polling","clien
tId":"1lsgwk4onsllq","connectionId"
:"/meta/connections/1lsgwk4onsllq","timestamp
":"Wed Dec 06 11:51:50 CET
2006","id":"c93x5wa"}]
<=1=[{"connectionId":"/meta/connections/1l
sgwk4onsllq","timestamp":"Wed Dec 06
11:51:50 CET 2006","error":"unknown
clientID","successful":false,"channel&qu
ot;:"/meta/reconnect","advice":{"re
connect":"handshake","interval":0}}
]
=0=>[{"channel":"/meta/reconnect",&qu
ot;connectionType":"long-polling","clien
tId":"1lsgwk4onsllq","connectionId"
:"/meta/connections/1lsgwk4onsllq","timestamp
":"Wed Dec 06 11:51:50 CET
2006","id":"c93x5wa"}]
<=1=[{"connectionId":"/meta/connections/1l
sgwk4onsllq","timestamp":"Wed Dec 06
11:51:50 CET 2006","error":"unknown
clientID","successful":false,"channel&qu
ot;:"/meta/reconnect","advice":{"re
connect":"handshake","interval":0}}
]
=0=>[{"channel":"/meta/reconnect",&qu
ot;connectionType":"long-polling","clien
tId":"1lsgwk4onsllq","connectionId"
:"/meta/connections/1lsgwk4onsllq","timestamp
":"Wed Dec 06 11:51:50 CET
2006","id":"c93x5wa"}]
<=1=[{"connectionId":"/meta/connections/1l
sgwk4onsllq","timestamp":"Wed Dec 06
11:51:50 CET 2006","error":"unknown
clientID","successful":false,"channel&qu
ot;:"/meta/reconnect","advice":{"re
connect":"handshake","interval":0}}
]

So I am getting an unknown client ID and advising to
handshake again, but I just get reconnects in a tight loop.

cheers

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cometd-dev" group.
To post to this group, send email to cometd-devgooglegroups.com
To unsubscribe from this group, send email to
cometd-dev-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/cometd-dev

Visit the cometd website at http://www.cometd.com/
-~----------~----~----~----~------~----~------~--~---

advices
user name
2006-12-06 11:01:12

Also looking at protocol.txt it has interval as a transport
specific
parameter.

I think it also makes sense to have it as a top level advice
parameter
(most specific given wins)
so I can give general advice like

 "advice":{"reconnect":"handshake&q
uot;,"interval":500}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cometd-dev" group.
To post to this group, send email to cometd-devgooglegroups.com
To unsubscribe from this group, send email to
cometd-dev-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/cometd-dev

Visit the cometd website at http://www.cometd.com/
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )