Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Paho mqtt connection issue(Getting errors when connection)
Paho mqtt connection issue [message #1732063] Thu, 12 May 2016 11:08 Go to next message
Srinivas Pokala is currently offline Srinivas PokalaFriend
Messages: 7
Registered: May 2016
Junior Member
HI,

I try to create a application using paho mqtt javascript.

My config file:

http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

upstream websocket {
server domain.com:8010;
}

server {
listen 8020;
location / {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
server {
listen 80;
server_name domain.com ;
server_tokens off;

location /websocket {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}

}

}

code:

var client = new Paho.MQTT.Client("ws://domain.com/websocket", "myClientId" + new Date().getTime());

Please find attached file
  • Attachment: mqtt.png
    (Size: 78.96KB, Downloaded 237 times)
  • Attachment: mqtt1.png
    (Size: 70.67KB, Downloaded 116 times)
Re: Paho mqtt connection issue [message #1732102 is a reply to message #1732063] Thu, 12 May 2016 15:22 Go to previous message
James Sutton is currently offline James SuttonFriend
Messages: 69
Registered: July 2015
Member
Just spotted this, Same issue raised and answered here: https://github.com/eclipse/paho.mqtt.javascript/issues/71
Previous Topic:Publish message from callback messageArrived()
Next Topic:Paho: Durable Producer
Goto Forum:
  


Current Time: Sun Sep 23 12:54:22 GMT 2018

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

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

Back to the top