Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] MQTT WebSockets Sandbox Server?

Benjamin,

I can connect now, thanks.  I don't know if that's anything to do with being at home rather than work - I hope not :-)

Ian


On 05/22/2014 11:26 PM, Benjamin Cabé wrote:
I couldn't connect to the broker using normal means either so I tried
to restart it - that failed because the port is already in use. lsof
-i TCP:1883 tells me that node (and ponte) is listening on that port
now. I killed ponte with the aim of restarting it, but now that
mosquitto is running ponte won't start.


That’s really weird. Ponte is indeed listening on that port but on a different interface (198.41.30.225 / ponte.eclipse.org).
However it looks like you may have reset to the default mosquitto.conf file that listens on all interface, where I explicitly set it to listen only on 198.41.30.241 / iot.eclipse.org? Or did you?

Ian, I think the problem was the broker not websockets!

Ian do you still have issues? Definitely working for me now with both /ws and /mqtt. And I’m suspecting it's never been broken in the first place, maybe?
FWIW here’s a code snippet from http://iot.eclipse.org/demo
 var client = new Messaging.Client("ws://iot.eclipse.org/ws", "clientId");
    client._onConnectionLost_ = onConnectionLost;
    client._onMessageArrived_ = onMessageArrived;
    client.connect({
        onSuccess: onConnect
    });

HTH
Benjamin 




_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Committer on Paho, Mosquitto


Back to the top