The dojo library does not send supportedConnectionTypes during cometd handshake.
According to Bayeux 1.0 draft, this is a required field.
Do we have any plan to fix it?
This stops server side, like grizzly, doing validation on handshake request.
supportedConnectionTypes is not sent during cometd handshake
Submitted by shingwai on Thu, 12/13/2007 - 18:06.
- Login or register to post comments
- Unsubscribe post

patched cometd.js implementation
Hi,
I currently ran into the same problem. Since a look at the code showed no sign of outputing supportedConnectionTypes and I could not read any response here in the list. I decided to insert it myself.
All I did, was to patch the init-function to set the additional propperty in cometd.js
Here comes the small code fragment:
props.supportedConnectionTypes = new Array();
for(var i = 0; i < this.connectionTypes.pairs.length; i++) {
props.supportedConnectionTypes[i] = this.connectionTypes.pairs[i][0];
}
Dont know if my dojo-code has the correct dojo-mojo, but it does the job and now the cometd client is fully spec compilant ... at least the handshake part :-)
Hope this helps anyone.
Chris