WebSocket Client in TypeScript

Опубликовано: 18 Март 2026
на канале: Nono Martínez Alonso
10,762
128

How to build a client for real-time communication with WebSockets in TypeScript using the ws NPM package.
💬 Join the conversation on Discord   / discord  
🧠 Machine Intelligence Playlist:    • 🧠 Machine Intelligence  
🔴 Live Playlist:    • 🧠 Live Streams  
🕸 Web Development Playlist:    • 🚀 Web  

🍃 Getting Simple: https://gettingsimple.com
🎙 Podcast: https://gettingsimple.com/podcast
🗣 Ask Questions: https://gettingsimple.com/ask
💬 Discord:   / discord  
👨🏻‍🎨 Sketches: https://sketch.nono.ma
✍🏻 Blog: https://nono.ma
🐦 Twitter:   / nonoesp  
📸 Instagram:   / nonoesp  

==================
🎥 VIDEO CHAPTERS
==================

00:00 Introduction
00:24 Project setup
00:43 Dependencies
01:18 Configuring TypeScript and ts-node
01:51 Project files
02:21 Client Code
03:25 WebSocket event handlers
04:18 Connecting to a server
05:53 Outro