In this video, we'll use Microsoft's fetch-event-source package to use fetch to listen for our own server-sent events generated by our very own Node.js Express server. Using fetch allows us to add a payload to our request, use HTTP methods like POST, PUT, and DELETE, and include headers for authentication and authorization purposes. This is super useful for things ranging from displaying real-time data that changes frequently (think stock ticker) all the way to streaming those ChatGPT responses :)
GitHub Repo: github.com/cov...
Express Template with Browserify: github.com/cov...
Don't forget to like this video and subscribe to our channel - we're publishing more videos and walkthroughs every week. Comment below and let us know what you'd like to see next!
Join the Covalence community: covalence.io
Shop Covalence merch: covalence.merc...
29 окт 2024