Closed TaherianuBeac closed 5 years ago
please check out the code in https://github.com/chkr1011/MQTTnet/blob/master/Tests/MQTTnet.TestApp.AspNetCore2/
Try port 5000 to connect. in @JanEggers' comment, the code uses 5000 port for WebSockets (ws://localhost:5000/mqtt
)
Above link is broken
here is an updated link for anyone that didnt figure it out yet:
https://github.com/dotnet/MQTTnet/tree/master/Source/MQTTnet.AspTestApp
I am trying to make a broker to communicate with it by WebSocket. I used this code but it wasn't successful. I cannot even connect to broker via WebSocket but I can connect via tcp (port 1883)
I also tried with
app.UseMqttEndpoint()
. I am using mqttnet version 3.0.4 and asp.net core 2.2.0 I'm using MQTTlens and MQTTBox as client. What did I do wrong?