Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received

#1

Hi guys

I’m getting this error while trying to connect to a wamp websockets server.

From what I could understand I’m running wamp protocol 2.0 on the client code and 1.0 on the server side.

Seeing as I cannot change the version on the server, how can I force the client to use the 1.0 protocol?

Thanks

Francisco

0 Likes

#2

Just to had on this I can run the application wiht http://autobahn.s3.amazonaws.com/js/autobahn.min.js but I need to use the last version https://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.min.jgz

Sexta-feira, 18 de Julho de 2014 13:20:43 UTC+1, Francisco Loureiro escreveu:

···

Hi guys

I’m getting this error while trying to connect to a wamp websockets server.

From what I could understand I’m running wamp protocol 2.0 on the client code and 1.0 on the server side.

Seeing as I cannot change the version on the server, how can I force the client to use the 1.0 protocol?

Thanks

Francisco

0 Likes

#3

Hi Francisco,

···

Am 18.07.2014 14:23, schrieb Francisco Loureiro:

Just to had on this I can run the application
wiht http://autobahn.s3.amazonaws.com/js/autobahn.min.js but I need to
use the last
version https://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.min.jgz

It's simple: you can't use the latest AutobahnJS with a WAMP1 server.

So either use WAMP1 on both client and server or WAMP2.

/Tobias

0 Likes