WebSocket connection is failed. Connection closed before receiving a handshake response

Andrey Povelichenko
Added over 4 years ago

Hello guys!

We are using Tigase 5.2.0 final for our chat server.

But when I try to create a new Websocket connection through JS

new WebSocket('ws://', 'xmpp')

it is failed with error in JS console:

WebSocket connection to 'ws://' failed: Connection closed before receiving a handshake response

It's strange, because this bug is reproduced only with some Mac OS users on Chrome. For Win and Ubuntu browsers this works. Also it is correct when I use the incognito mode for Chrome or use test example from websocket oficial site


Could you try to help me? Any ideas. I don't think that it is a browser trouble. Maybe need to do some changes in tigase settings for it?

Replies (1)


Added by Artur Hefczyc TigaseTeam over 4 years ago

Could you try our last stable: 5.2.3 version? There are some changes and improvements in the web sockets component as well, so it may work better. Also, for the Mac Chrome users, make sure the last Chrome version is used, as they change their web sockets implementation as well.