EMQX I can't use ws connection

I'm trying to use the standard template, I can use the mqtt protocol but I haven't found a way to use ws
19 Replies
Percy
Percy2mo ago
Project ID: ccfdc134-86d5-4fc6-a8d7-f138883659e2
Brody
Brody2mo ago
what issues are you running into?
jeffsrandall
jeffsrandallOP2mo ago
ccfdc134-86d5-4fc6-a8d7-f138883659e2 I couldn't use the ws connection, I didn't understand which url to use or the port Connection using mqtt protocol works normally
Brody
Brody2mo ago
wss://<public TCP proxy>:<TCP proxy port>
jeffsrandall
jeffsrandallOP2mo ago
caddy public domain? just?
Brody
Brody2mo ago
what does caddy have to do with this?
jeffsrandall
jeffsrandallOP2mo ago
there are two domains > caddy-production-bf9e.up.railway.app, The other domain is junction.proxy.rlwy.net, I used this to access the mqtt protocol
Brody
Brody2mo ago
you would use the TCP proxy
jeffsrandall
jeffsrandallOP2mo ago
Sorry, I couldn't understand, I tried several ways, but it didn't work Where could I be going wrong?
Brody
Brody2mo ago
^ what happens when you use this format
jeffsrandall
jeffsrandallOP2mo ago
I'm trying to connect using mqttx, it requires a port even in the wss protocol, when I try to use the ports that are in the env, it doesn't connect, it keeps reconnecting
Brody
Brody2mo ago
then you would need to provide the port ^ updated
jeffsrandall
jeffsrandallOP2mo ago
This works, but only on the mqtt protocol
jeffsrandall
jeffsrandallOP2mo ago
No description
jeffsrandall
jeffsrandallOP2mo ago
domain and public port
Brody
Brody2mo ago
may I ask what you need websockets for?
jeffsrandall
jeffsrandallOP2mo ago
Use on mobile
Brody
Brody2mo ago
you said the mqtt protocol works fine
jeffsrandall
jeffsrandallOP2mo ago
yes It didn't work, for mobile use the ideal is ws or wss, I don't know why, but I couldn't use the EMQX template
Want results from more Discord servers?
Add your server