EMQX I can't use ws connection
jeffxxt
PROOP

2 years ago

I'm trying to use the standard template, I can use the mqtt protocol but I haven't found a way to use ws

23 Replies

2 years ago

what issues are you running into?


jeffxxt
PROOP

2 years ago

ccfdc134-86d5-4fc6-a8d7-f138883659e2


jeffxxt
PROOP

2 years ago

I couldn't use the ws connection, I didn't understand which url to use or the port


jeffxxt
PROOP

2 years ago

Connection using mqtt protocol works normally


2 years ago

wss://:


jeffxxt
PROOP

2 years ago

caddy public domain? just?


2 years ago

what does caddy have to do with this?


jeffxxt
PROOP

2 years 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


2 years ago

you would use the TCP proxy


jeffxxt
PROOP

2 years ago

Sorry, I couldn't understand, I tried several ways, but it didn't work


jeffxxt
PROOP

2 years ago

Where could I be going wrong?


2 years ago

^ what happens when you use this format


jeffxxt
PROOP

2 years 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


2 years ago

then you would need to provide the port


2 years ago

^ updated


jeffxxt
PROOP

2 years ago

This works, but only on the mqtt protocol


jeffxxt
PROOP

2 years ago

1281615227791741000


jeffxxt
PROOP

2 years ago

domain and public port


2 years ago

may I ask what you need websockets for?


jeffxxt
PROOP

2 years ago

Use on mobile


2 years ago

you said the mqtt protocol works fine


jeffxxt
PROOP

2 years ago

yes


jeffxxt
PROOP

2 years ago

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


Loading...