Skip to main content



      Home
Home » Eclipse Projects » Paho » Paho mqtt connection(Connection closed before receiving a handshake response)
Paho mqtt connection [message #1786591] Tue, 08 May 2018 01:16 Go to next message
Eclipse UserFriend
Hi,
We are getting below error in some browsers(chrome or mozilla) when we connect mqtt using web sockets. When we clear browser history then connected.
Error:
WebSocket connection to 'wss://host:port/mqtt' failed: Connection closed before receiving a handshake response Paho.MQTT.ClientImpl._doConnect @ mqttws31.js:979

My connection:

var client = new Paho.MQTT.Client("host", Number(port), "myClientId" + new Date().getTime());
client.connect({userName:username,password:password,onSuccess:onConnect,onFailure:doFail,useSSL:true,cleanSession:false});

So please look into this.
Thanks
Re: Paho mqtt connection [message #1786640 is a reply to message #1786591] Tue, 08 May 2018 16:53 Go to previous message
Eclipse UserFriend
While the forums aren't our bug reporting mechanism (that would be bugs.eclipse.org, and expect more detail than this), I'll see about getting this moved to at least the right forum for Paho.
Previous Topic:MQTT broker disconnection
Next Topic:Paho mqtt connection
Goto Forum:
  


Current Time: Sat Jun 21 01:52:37 EDT 2025

Powered by FUDForum. Page generated in 0.02637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top