Hello Bjarki,
Thanks for your response. I'm sure that there is no any server running on 8080.
That's problem with cometd-python implementation only. And I realized
where it is.
If you take a look at bayeux_server.py line 82 you will see following check:
...
//checking for supported connection types
elseif clientConnectionTypesSet.difference(self.connectionTypesSet):
//send error to client
self.connectionTypesSet is ["iframe",
"flash","callback-polling","long-polling"].
clientConnectionTypesSet is
["callback-polling","long-polling","long-json-polling"].
So, client has "long-json-polling" connection type which server does
not support.
It strange that server generates error because client has also 2
supported connection
types which can be used.There is a clause from specification:
- Successful handshake response
- supportedConnectionTypes
The connection types supported by the server for the purposes of the
connection being negotiated. This list MAY be a subset of the
connection types actually supported if the server wishes to negotiate
a specific connection type. This list MUST contain at list one element
in common with the supportedConnectionType provided in the handshake
request. If there are no connectionTypes in common, the handshake
response MUST be unsuccessful.
As fas as I understand it should work.
And I realized that cometd-twisted implementation is not really ready
for production and even to start with comet.
It's actually out-of-date stuff. If to compare, I installed jetty with
working examples within 10 minutes.
Best regards,
Siarhei Barysiuk