Skip to content

mqtt-over-ws-client with user and password doesn't work #2489

Discussion options

You must be logged in to vote

Given that HiveMQ works, I don't see this as a Mongoose issue.
In your capture I see the websocket communication seems to establish, but your broker does not answer, it is not listening for MQTT in that port. Frame 13 is the login attempt, it is the very same 35-byte content that is sent to HiveMQ as frame 8 in the other capture file:

0000   10 21 00 04 4d 51 54 54 04 c0 00 00 00 05 69 64   .!..MQTT.À....id
0010   31 32 33 00 04 75 73 65 72 00 08 70 61 73 73 77   123..user..passw
0020   6f 72 64                                          ord

10: MQTT connect control message, no flags
21: 33, remaining length
00 04: Protocol Name length
MQTT
04: v3.1.1
etc. https://docs.oasis-open.org/mqtt/…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@scaprile
Comment options

Answer selected by scaprile
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants