Skip to content
Data & APIs · Lesson 05 of 05 · Builds on Mutations, optimistic updates and pagination

Real-time with WebSockets and SSE

Push updates from a Nuxt server with server-sent events or a WebSocket, read them with VueUse's useEventSource() and useWebSocket(), and handle reconnects, heartbeats, repeated messages and proxies.