Wrapping Up
You’ve now seen how htmx makes it easy to work with WebSockets and server-sent events. These open new possibilities for communication from the server to browser clients.
Next, you’ll take what you’ve learned, share it with others, and build your next great web application!
Footnotes
- [75]
- [76]
-
https://mvolkmann.github.io/blog/topics/#/blog/server-sent-events/
- [77]
-
https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism
- [78]
-
https://github.com/mvolkmann/websocket-examples/blob/main/bun-websockets/
- [79]
- [80]
-
https://github.com/mvolkmann/websocket-examples/blob/main/htmx-websockets/
- [81]
-
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events ...
Get Server-Driven Web Apps with htmx now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.