Is there any way in phoenix to have websockets with this pattern
Something like that
Any idea would be appreciate
I’m not sure I understand the problem. Are you trying to connect to a websocket endpoint with the above pattern? Is there a reason you can’t connect directly to the url with the uuid?
Yes Phoenix channels seem to need network protocol as suffix.
This URL works fine
I would like to avoid this suffix, maybe redirecting or with some route,
but I can’t figure it out.
You can do it but you’d have to make your own websocket override module, it is actually very easy to do and involves mostly copying the existing module.
Do you mean this phoenix module: Phoenix.Transports.WebSocket?
That might be it. Unable to look at moment. ^.^;
The entire ‘socket’ system in Phoenix is pluggable, you could even design a new one that, oh, goes over SCTP or some proprietary protocol or whatever you want. In this case a simple edit to the websocket to handle it differently. It just comes with WebSocket and LongPolling as transports by default (which you choose in your socket setup file via