MENU

Fun & Interesting

How to Setup Secure WebSockets with NestJs

jemini-io 22,730 2 years ago
Video Not Working? Fix It Now

Whether you want to build a chat app or send real-time updates to your end users, WebSockets are great pub/sub technology. While the NestJs framework supports WebSockets, they’re not quite first-class citizens. In this video, we’re going to set up WebSockets in an existing NestJs project and of the various options for authentication, I’ll show you the one I think is best. ~~ Chapters ~~ 0:00 - Intro 0:26 - Overview & Setup 2:01 - Add A WebSocket Gateway 7:33 - Setup Ability to push to a WebSocket Client 14:31 - Push Message when Message Created 19:30 - How NOT to do Gateway Auth 29:47 - How to Secure the Gateway The Best Way 40:00 - Outro ---- LinkedIn: https://www.linkedin.com/company/jemini-io/ GitHub: https://github.com/jemini-io Intro Music By Eggy Toast: https://freemusicarchive.org/music/eggy-toast/redaction/redaction/

Comment