<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>WebSockets on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/websockets/</link><description>Recent content in WebSockets on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 14 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/websockets/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 6: Real-time Magic: Client Synchronization and Event Propagation</title><link>https://ai-blog.noorshomelab.dev/spacetime-db-guide-2026/chapter-6-client-sync-event-propagation/</link><pubDate>Sat, 14 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/spacetime-db-guide-2026/chapter-6-client-sync-event-propagation/</guid><description>&lt;h2 id="chapter-6-real-time-magic-client-synchronization-and-event-propagation"&gt;Chapter 6: Real-time Magic: Client Synchronization and Event Propagation&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid developer! In our previous chapters, we&amp;rsquo;ve explored the foundational concepts of SpaceTimeDB, from setting up your development environment to designing schemas and writing server-side logic using reducers. We&amp;rsquo;ve seen how SpaceTimeDB acts as a unified backend, combining a database with application logic.&lt;/p&gt;
&lt;p&gt;Now, it&amp;rsquo;s time to unveil the &amp;ldquo;magic&amp;rdquo; that makes SpaceTimeDB truly shine: its real-time capabilities. This chapter will pull back the curtain on how client applications stay perfectly synchronized with your SpaceTimeDB instance, receiving instant updates as data changes. We&amp;rsquo;ll explore the core mechanisms of client synchronization, event propagation, and how to build responsive, collaborative experiences.&lt;/p&gt;</description></item><item><title>Chapter 8: Integrating with Frontends: Web Clients and Game Engines</title><link>https://ai-blog.noorshomelab.dev/spacetime-db-guide-2026/chapter-8-frontend-integration/</link><pubDate>Sat, 14 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/spacetime-db-guide-2026/chapter-8-frontend-integration/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome to Chapter 8! So far, we&amp;rsquo;ve explored the fascinating world of SpaceTimeDB, understanding its core concepts, how to define schemas, and how to implement server-side logic using reducers. We&amp;rsquo;ve built the &amp;ldquo;brain&amp;rdquo; of our real-time applications, where data lives and logic executes deterministically.&lt;/p&gt;
&lt;p&gt;But what&amp;rsquo;s a powerful backend without a beautiful and interactive frontend? This chapter is all about bridging that gap. We&amp;rsquo;ll dive deep into how your client applications—whether they&amp;rsquo;re web apps built with JavaScript/TypeScript or games developed with engines like Unity using C#—connect to SpaceTimeDB, subscribe to real-time data updates, and invoke your server-side reducers. By the end of this chapter, you&amp;rsquo;ll be able to bring your SpaceTimeDB-powered ideas to life with dynamic, real-time user interfaces.&lt;/p&gt;</description></item><item><title>Chapter 8: WebSockets and Server-Sent Events (SSE) with HTMX</title><link>https://ai-blog.noorshomelab.dev/htmx-mastery-2025/websockets-server-sent-events/</link><pubDate>Thu, 04 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/htmx-mastery-2025/websockets-server-sent-events/</guid><description>&lt;h2 id="introduction-bringing-your-web-apps-to-life-with-real-time-updates"&gt;Introduction: Bringing Your Web Apps to Life with Real-time Updates&lt;/h2&gt;
&lt;p&gt;Welcome back, future HTMX wizard! In our journey so far, we&amp;rsquo;ve mastered how HTMX makes dynamic, interactive web applications feel like magic, all without writing a single line of JavaScript. We&amp;rsquo;ve handled forms, swapped content, and even orchestrated complex UI changes with simple HTML attributes. But what if your application needs to react to things happening &lt;em&gt;right now&lt;/em&gt;? What if you want to push updates from the server to your users in real-time, without them having to click a button or refresh the page?&lt;/p&gt;</description></item><item><title>12. Integrating Databases and Real-time Systems</title><link>https://ai-blog.noorshomelab.dev/void-cloud-mastery-2026/integrating-databases-realtime-systems/</link><pubDate>Sat, 14 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/void-cloud-mastery-2026/integrating-databases-realtime-systems/</guid><description>&lt;h2 id="12-integrating-databases-and-real-time-systems"&gt;12. Integrating Databases and Real-time Systems&lt;/h2&gt;
&lt;p&gt;Welcome back, fellow Void Cloud voyager! In our previous chapters, we’ve learned how to build and deploy robust applications, manage environments, and ensure secure operations on Void Cloud. But what good is an application if it can&amp;rsquo;t remember anything, or if it can&amp;rsquo;t deliver instant updates to its users?&lt;/p&gt;
&lt;p&gt;This chapter is all about making your applications truly dynamic and interactive. We&amp;rsquo;re going to dive deep into integrating two crucial components of almost any modern web application: &lt;strong&gt;databases&lt;/strong&gt; for persistent data storage and &lt;strong&gt;real-time systems&lt;/strong&gt; for instant communication. You&amp;rsquo;ll learn how Void Cloud seamlessly connects to various database solutions and how to leverage real-time technologies to build engaging user experiences.&lt;/p&gt;</description></item><item><title>Chapter 15: Advanced Architectures: Microfrontends and WebSockets</title><link>https://ai-blog.noorshomelab.dev/react-production-guide-2026/advanced-architectures-microfrontends-websockets/</link><pubDate>Wed, 11 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/react-production-guide-2026/advanced-architectures-microfrontends-websockets/</guid><description>&lt;h2 id="chapter-15-advanced-architectures-microfrontends-and-websockets"&gt;Chapter 15: Advanced Architectures: Microfrontends and WebSockets&lt;/h2&gt;
&lt;p&gt;Welcome to Chapter 15, where we&amp;rsquo;ll dive into advanced architectural patterns that empower you to build highly scalable, maintainable, and interactive React applications for the enterprise world. As your applications grow in complexity and team size, traditional monolithic frontend architectures can become bottlenecks. Similarly, static data fetching might not cut it for experiences demanding instant updates.&lt;/p&gt;
&lt;p&gt;In this chapter, we&amp;rsquo;ll demystify Microfrontends, an architectural style that breaks down large frontends into smaller, independently deployable units, leveraging Webpack&amp;rsquo;s Module Federation. This approach fosters team autonomy and faster development cycles. Concurrently, we&amp;rsquo;ll explore WebSockets, a powerful protocol for real-time, bi-directional communication, essential for features like live chat, notifications, and collaborative tools. You&amp;rsquo;ll learn not just &lt;em&gt;what&lt;/em&gt; these technologies are, but &lt;em&gt;why&lt;/em&gt; they solve critical production problems, &lt;em&gt;how&lt;/em&gt; to implement them step-by-step, and how to avoid common pitfalls.&lt;/p&gt;</description></item><item><title>Full-Stack JavaScript System Design Scenarios</title><link>https://ai-blog.noorshomelab.dev/js-architect-prep-2026/fullstack-javascript-system-design/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/js-architect-prep-2026/fullstack-javascript-system-design/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome to Chapter 15: Full-Stack JavaScript System Design Scenarios. While previous chapters might have delved into the intricate &amp;ldquo;weird parts&amp;rdquo; of JavaScript at a granular level, this chapter elevates that understanding to an architectural plane. For senior and architect-level roles, it&amp;rsquo;s not enough to merely know how JavaScript&amp;rsquo;s event loop works; you must be able to design entire systems that leverage its strengths and mitigate its weaknesses.&lt;/p&gt;
&lt;p&gt;This chapter is designed for experienced developers aspiring to architect or lead positions. It focuses on applying deep knowledge of JavaScript&amp;rsquo;s execution model, asynchronous nature, memory management, and even its more unintuitive behaviors (like scope, closures, and &lt;code&gt;this&lt;/code&gt; binding) to solve complex full-stack system design challenges. We&amp;rsquo;ll explore how these fundamental concepts directly impact scalability, performance, reliability, and maintainability of real-world applications built with modern JavaScript (ES2025/2026 standards, Node.js v20+, React/Vue/Angular latest versions).&lt;/p&gt;</description></item><item><title>Chapter 23: Advanced Architecture: Microfrontends, WebSockets, and Feature Toggles</title><link>https://ai-blog.noorshomelab.dev/angular-production-guide-2026/advanced-architecture/</link><pubDate>Wed, 11 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/angular-production-guide-2026/advanced-architecture/</guid><description>&lt;h2 id="chapter-23-advanced-architecture-microfrontends-websockets-and-feature-toggles"&gt;Chapter 23: Advanced Architecture: Microfrontends, WebSockets, and Feature Toggles&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid Angular architect! In this chapter, we&amp;rsquo;re going to level up our application design skills and tackle some truly advanced architectural patterns. As your applications grow in complexity, team size, and user expectations, traditional monolithic frontend approaches can become bottlenecks. We&amp;rsquo;ll explore strategies that empower independent teams, enable real-time user experiences, and provide unparalleled flexibility in deploying new features.&lt;/p&gt;</description></item><item><title>Project 4: Real-Time Collaboration Tool</title><link>https://ai-blog.noorshomelab.dev/ios-pro-dev-2026-guide/project-realtime-collaboration/</link><pubDate>Thu, 26 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ios-pro-dev-2026-guide/project-realtime-collaboration/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome to Project 4, where we&amp;rsquo;ll dive into the exciting world of real-time collaboration! Up until now, our apps have largely focused on single-user experiences or fetching data that updates periodically. But what if multiple users need to interact with the &lt;em&gt;same data&lt;/em&gt;, simultaneously, and see each other&amp;rsquo;s changes &lt;em&gt;instantly&lt;/em&gt;? That&amp;rsquo;s the challenge we&amp;rsquo;ll tackle in this project.&lt;/p&gt;
&lt;p&gt;In this chapter, you&amp;rsquo;ll learn how to design and build a simplified real-time collaborative drawing application for iOS. This project will push your understanding of networking, state management, and concurrency, bringing together many advanced concepts from previous chapters. We&amp;rsquo;ll explore how to establish persistent connections, synchronize data across devices, and ensure a smooth, responsive user experience.&lt;/p&gt;</description></item><item><title>Building a Production-Ready Real-time Chat Application: A Zero-to-Advanced Guide</title><link>https://ai-blog.noorshomelab.dev/projects/real-time-chat-fastapi-guide/</link><pubDate>Mon, 01 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/projects/real-time-chat-fastapi-guide/</guid><description>&lt;p&gt;Welcome to the &lt;strong&gt;Zero to Production-Ready Guide&lt;/strong&gt; for building a real-time chat application using FastAPI (Python) and WebSockets with basic user authentication! In this comprehensive guide, you&amp;rsquo;ll learn how to leverage the power of modern Python web development to create a robust, scalable, and secure chat platform.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ll start from the very basics, setting up your development environment, and gradually build up the application, introducing core concepts like FastAPI routing, WebSocket communication, data models, user authentication, and ultimately, preparing your application for a real-world production environment. Each step will be explained thoroughly, with clear code examples and justifications for the architectural and library choices we make.&lt;/p&gt;</description></item><item><title>Chapter 10: Securing WebSocket Communication</title><link>https://ai-blog.noorshomelab.dev/chat-guide/chapter-10-websocket-security/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/chat-guide/chapter-10-websocket-security/</guid><description>&lt;p&gt;So far, our chat application uses JWT for HTTP authentication and passes the token as a query parameter for WebSockets. While this identifies the user, the actual WebSocket data transfer is currently unencrypted (WS://). For production, all traffic, especially sensitive chat messages, &lt;strong&gt;must&lt;/strong&gt; be encrypted using WSS (WebSocket Secure), which relies on TLS/SSL certificates. This chapter focuses on enabling WSS and reinforcing WebSocket authentication.&lt;/p&gt;
&lt;h3 id="purpose-of-this-chapter"&gt;Purpose of this Chapter&lt;/h3&gt;
&lt;p&gt;By the end of this chapter, you will:&lt;/p&gt;</description></item><item><title>Chapter 3: Introducing WebSockets - Real-time Foundations</title><link>https://ai-blog.noorshomelab.dev/chat-guide/chapter-3-websockets-intro/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/chat-guide/chapter-3-websockets-intro/</guid><description>&lt;p&gt;The core of any real-time chat application is its ability to establish persistent, bidirectional communication channels. This is where WebSockets come in. In this chapter, we&amp;rsquo;ll integrate a basic WebSocket endpoint into our FastAPI application.&lt;/p&gt;
&lt;h3 id="purpose-of-this-chapter"&gt;Purpose of this Chapter&lt;/h3&gt;
&lt;p&gt;By the end of this chapter, you will be able to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Understand the fundamental concept of WebSockets.&lt;/li&gt;
&lt;li&gt;Implement a FastAPI WebSocket endpoint.&lt;/li&gt;
&lt;li&gt;Send and receive messages over a WebSocket connection.&lt;/li&gt;
&lt;li&gt;Test your WebSocket connection using a simple client.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="concepts-explained-websockets"&gt;Concepts Explained: WebSockets&lt;/h3&gt;
&lt;p&gt;Traditionally, HTTP is a request-response protocol: a client sends a request, the server sends a response, and the connection closes. This isn&amp;rsquo;t ideal for real-time applications where information needs to be pushed from the server to the client instantly, and vice-versa, without constant polling.&lt;/p&gt;</description></item><item><title>Chapters for Building a Real-time Chat Application</title><link>https://ai-blog.noorshomelab.dev/chat-guide/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/chat-guide/</guid><description>&lt;p&gt;This section provides a structured list of all the chapters in the &amp;ldquo;Building a Production-Ready Real-time Chat Application&amp;rdquo; guide. Each chapter builds upon the previous one, taking you through the entire process from initial setup to production deployment.&lt;/p&gt;</description></item><item><title>WebSockets with React and Node.js: A Comprehensive Guide</title><link>https://ai-blog.noorshomelab.dev/guides/websockets-react-node-latest/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/guides/websockets-react-node-latest/</guid><description>&lt;h1 id="mastering-websockets-with-react-and-nodejs-a-comprehensive-guide"&gt;Mastering WebSockets with React and Node.js: A Comprehensive Guide&lt;/h1&gt;
&lt;p&gt;Welcome to the exciting world of real-time web applications! In this document, you&amp;rsquo;ll embark on a journey to understand and implement WebSockets using two of the most popular technologies today: React for the frontend and Node.js for the backend. Whether you&amp;rsquo;re looking to build a chat application, a live dashboard, or an interactive gaming experience, WebSockets are a fundamental technology that will enable you to create dynamic and engaging user interfaces.&lt;/p&gt;</description></item></channel></rss>