I currently am working with a system where we have a REST API (Django) with a separate React application that makes use of the API. The API provides sockets for clients to subscribe to changes to data, so that all connected clients get updated when data changes server side.
I am investigating porting the API side to Elixir. I’m fairly new to Elixir, but have been using it for a while now.
LiveView is pretty much the equivalent to the sockets mentioned above, but I have not found any info on whether any client can connect to these sockets or only the Phoenix application itself.
Is it possible to connect the React application to the Liveview sockets as you would with any other websocket, or are there any caveats I should be aware of?