📄️ LiveViewSocket API
The LiveViewSocket API is the second most important API (behind the LiveView API itself). As you've seen, the
📄️ LiveViewSocket API - Context
The "context" of a LiveView is the current state of the LiveView. One way to think of a LiveView is as a set of methods
📄️ LiveViewSocket API - Push
There are various methods for "pushing" data from the server to the client outside of render and updating the URL of
📄️ LiveViewSocket API - Server Events
Server events are important to connect LiveViews with asynchronous processes. For example, a LiveView may need to wait
📄️ LiveViewSocket API - Uploads
A common use case for a web application is to allow users to upload files. The following methods on the LiveViewSocket
📄️ LiveViewSocket API - Misc
A few other methods and properties are available on the LiveViewSocket object that we haven't covered yet.
📄️ Raw `LiveViewSocket` API
For your reference, below is the raw Typescript for the LiveViewSocket interface (copied from