Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Paho mqtt connection(Connection closed before receiving a handshake response)
Paho mqtt connection [message #1786591] Tue, 08 May 2018 05:16 Go to next message
Srinivas Pokala is currently offline Srinivas PokalaFriend
Messages: 7
Registered: May 2016
Junior Member
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 20:53 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:MQTT broker disconnection
Next Topic:Paho mqtt connection
Goto Forum:
  


Current Time: Thu Apr 18 12:40:23 GMT 2024

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

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

Back to the top