| ▲ | cyberpunk 5 hours ago | |||||||
I am a fan of the idea, but the websocket is also quite a big attack surface; you can do a lot more by sending messages over this socket to your phoenix app than you would likely expect to have exposed via some api on another framework. It’s difficult to secure, in my opinion. Perhaps not impossible but the cost of doing so pretty much eclipses the benefits of using liveview imo. | ||||||||
| ▲ | mcintyre1994 5 hours ago | parent | next [-] | |||||||
I haven’t used it for anything in production so I haven’t seen these issues, could you give a bit more detail? I’m mostly wondering why you’d have any more websocket messages that you respond to than you would APIs if you were using any other approach. Does LiveView itself respond to certain messages bypassing your app? | ||||||||
| ||||||||
| ▲ | kitd 4 hours ago | parent | prev [-] | |||||||
Why? It's the client that initiates the connection. | ||||||||