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
Percy3mo ago
Project ID: ccfdc134-86d5-4fc6-a8d7-f138883659e2
Brody
Brody3mo ago
what issues are you running into?
jeffsrandall
jeffsrandallOP3mo 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
Brody3mo ago
wss://<public TCP proxy>:<TCP proxy port>
jeffsrandall
jeffsrandallOP3mo ago
caddy public domain? just?
Brody
Brody3mo ago
what does caddy have to do with this?
jeffsrandall
jeffsrandallOP3mo 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
Brody3mo ago
you would use the TCP proxy
jeffsrandall
jeffsrandallOP3mo ago
Sorry, I couldn't understand, I tried several ways, but it didn't work Where could I be going wrong?
Brody
Brody3mo ago
^ what happens when you use this format
jeffsrandall
jeffsrandallOP3mo 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
Brody3mo ago
then you would need to provide the port ^ updated
jeffsrandall
jeffsrandallOP3mo ago
This works, but only on the mqtt protocol
jeffsrandall
jeffsrandallOP3mo ago
No description
jeffsrandall
jeffsrandallOP3mo ago
domain and public port
Brody
Brody3mo ago
may I ask what you need websockets for?
jeffsrandall
jeffsrandallOP3mo ago
Use on mobile
Brody
Brody3mo ago
you said the mqtt protocol works fine
jeffsrandall
jeffsrandallOP3mo 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