flespi-software / MQTT-Tiles

Open-source MQTT-based IoT dashboard visualization tool. Has full MQTT 5.0 support. Allows easy dashboards sharing. Works with any MQTT broker supporting the WSS protocol.
https://mqtttiles.flespi.io
MIT License
101 stars 13 forks source link

Can't connect to any broker using wss #23

Closed RobertoD91 closed 5 months ago

RobertoD91 commented 1 year ago

Testing connection from both https://mqtttiles.flespi.io/ and self hosted version versus this brokers:

nothing work

using https://websocketclient.hivemq.cloud/ i'm able to connect to hivemq broker

in the browser console i get this errror:

vendor.c1baebb7.js:76 WebSocket connection to 'wss://***.hivemq.cloud:****/' failed: 
d @ vendor.c1baebb7.js:76
g @ vendor.c1baebb7.js:76
l @ vendor.c1baebb7.js:70
k._setupStream @ vendor.c1baebb7.js:70
k._reconnect @ vendor.c1baebb7.js:70
(anonimo) @ vendor.c1baebb7.js:70
vendor.c1baebb7.js:76 WebSocket connection to 'wss://***.hivemq.cloud:****/' failed: 
d @ vendor.c1baebb7.js:76
bam80 commented 5 months ago

@dexif could you comment?

dexif commented 5 months ago

Just successfully connected with credentials from this official HiveMQ demo https://www.hivemq.com/demos/websocket-client/

screenshot-mqtttiles flespi io-2024 01 16-20_34_45

This example (from issue starter) did not work for me https://websocketclient.hivemq.cloud/

We tested MQTT Tiles with our MQTT broker https://flespi.com/mqtt-broker and Mosquitto, and it works fine.