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

264 views
Skip to first unread message

Francisco Loureiro

unread,
Jul 18, 2014, 8:20:43 AM7/18/14
to autob...@googlegroups.com
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

Francisco Loureiro

unread,
Jul 18, 2014, 8:23:47 AM7/18/14
to autob...@googlegroups.com
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

Tobias Oberstein

unread,
Jul 18, 2014, 9:47:14 AM7/18/14
to autob...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages