Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » ws://iot.eclipse.org:80/ws -- Not able to connect(ws://iot.eclipse.org:80/ws -- Not able to connect with Java script client)
ws://iot.eclipse.org:80/ws -- Not able to connect [message #1771046] Mon, 21 August 2017 13:13 Go to next message
Praveen Reddy is currently offline Praveen ReddyFriend
Messages: 14
Registered: June 2017
Junior Member
Hi All,

I am not able to connect to ws://iot.eclipse.org:80/ws MQTT broker from java script client. I am always getting 'connection closed event' with id 1006.

Here is what I am trying.

var ws = new WebSocket("ws://iot.eclipse.org:80/ws");

ws.onopen = function()
{
alert("WebSocket is connected");
ws.send("Message to send");
alert("Message is sent...");
};

ws.onclose = function(e)
{
// websocket is closed.
alert("Connection is closed...");
alert(e.code);
};

Can you please let me know what could be the wrong.

Thank you.

With Best Regards,
Praveen.B


[Updated on: Mon, 21 August 2017 14:12]

Report message to a moderator

Re: ws://iot.eclipse.org:80/ws -- Not able to connect [message #1771131 is a reply to message #1771046] Tue, 22 August 2017 11:01 Go to previous message
Praveen Reddy is currently offline Praveen ReddyFriend
Messages: 14
Registered: June 2017
Junior Member
Hi All,

I could solve the issue by connecting with client.

Thank you.

With Best Regards,
Praveen.B
Previous Topic:TTL for messages
Next Topic:Mosquitto service keeps stopping
Goto Forum:
  


Current Time: Wed Nov 14 23:30:24 GMT 2018

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

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

Back to the top