Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Websockets hangs webpage

Hi,
   I've been trying to get mosquitto running with a websocket listener on my Raspberry pi (Jessy). I have installed mosquito version 1.5, using the paho _javascript_ client.

I can see the connection is successful in both the mosquitto logs and _javascript_ console logs where I print when the connection is successful. The same occurs if I try to use another web client such as mqtt-admin.. What happens next is odd. The web page becomes unresponsive. I took a network capture from the pi and once connected I can see an infinite stream of the following

No.   Time                        Source             Destination                             Protocol           Length    Info
249 01:30:40.850127 PI_ADDRESS WEB_PAGE_ADDRESS  WebSocket 114        WebSocket Binary [FIN] 

I'm new to almost everything in this subject, the PI, and MQTT. I followed mostly online documentation to install mosquitto on the PI. Everything works on the default port, only the websocket litener is affected by this.

I've also tried to add a single subscribe call in the _javascript_ client, this seemed to be sent to the broker, but in the logs I see the following repeated many times, very fast.

1527130206: webclient_0.5659922542001481 0 broker_name
1527130206: Sending SUBACK to webclient_0.5659922542001481
1527130206: Received SUBSCRIBE from webclient_0.5659922542001481
1527130206:     broker_name (QoS 0)
1527130206: webclient_0.5659922542001481 0 broker_name
1527130206: Sending SUBACK to webclient_0.5659922542001481
1527130206: Received SUBSCRIBE from webclient_0.5659922542001481
1527130206:     broker_name (QoS 0)

Any help is appreciated.

Back to the top