Tagged articles
11 articles
Page 1 of 1
Open Source Tech Hub
Open Source Tech Hub
Nov 8, 2025 · Frontend Development

How to Build Real‑Time Chat in WeChat Mini‑Programs Using WebSocket

This guide explains how to implement live‑room features such as comments, joining, leaving, likes, follows, and product updates in a WeChat mini‑program by using WebSocket for full‑duplex communication, covering the handshake process, API usage, message handling logic, and heartbeat‑based reconnection strategies.

JavaScriptWeChat Mini ProgramWebSocket
0 likes · 13 min read
How to Build Real‑Time Chat in WeChat Mini‑Programs Using WebSocket
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 29, 2024 · Frontend Development

Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript

This article explains how to wrap WebSocket in a reusable JavaScript/TypeScript class that provides automatic reconnection, heartbeat monitoring, event callbacks, connection state management, and graceful destruction, while also comparing WebSocket advantages over traditional HTTP polling for real‑time H5 applications.

HeartbeatJavaScriptRealtime
0 likes · 14 min read
Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 28, 2024 · Frontend Development

Implementing a WebSocket Client with Automatic Reconnection and Heartbeat in TypeScript/JavaScript

This article explains how to build a WebSocket client that supports automatic reconnection after network loss and periodic heartbeat messages, provides a drop‑in API compatible with the native WebSocket interface, and includes complete TypeScript and JavaScript implementations with detailed code examples.

HeartbeatTypeScriptWebSocket
0 likes · 19 min read
Implementing a WebSocket Client with Automatic Reconnection and Heartbeat in TypeScript/JavaScript
Open Source Tech Hub
Open Source Tech Hub
Dec 10, 2023 · Backend Development

Why WebSocket Heartbeat Is Essential and How to Implement It

This article explains why heartbeat detection is crucial for WebSocket connections, describes the underlying Ping/Pong mechanism, details server and client configuration parameters, and provides complete code examples for implementing reliable heartbeat and reconnection logic.

BackendHeartbeatPHP
0 likes · 9 min read
Why WebSocket Heartbeat Is Essential and How to Implement It
ELab Team
ELab Team
Jan 25, 2022 · Frontend Development

Mastering WebSocket in WeChat Mini‑Programs: Handshake, Optimization & Real‑World Tips

This article explains the WebSocket handshake protocol, compares short‑polling, long‑polling, and WebSocket connections, and shares practical implementations in WeChat mini‑programs—including authentication, heartbeat, RTT simulation, compression, reconnection strategies, caching, and TCP_NODELAY tuning, complete with code examples.

HeartbeatWeChat Mini ProgramWebSocket
0 likes · 9 min read
Mastering WebSocket in WeChat Mini‑Programs: Handshake, Optimization & Real‑World Tips
NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
Mar 4, 2021 · Backend Development

How Signaling Powers Real‑Time Audio/Video: Inside NERTC’s Network Library

This article explains the concept and role of signaling in real‑time audio/video, describes the single‑PeerConnection architecture using WebSocket, details the handshake, keep‑alive and reconnection mechanisms, and outlines NERTC’s modular network library design for robust communication under weak network conditions.

Network LibrarySignalingWebRTC
0 likes · 13 min read
How Signaling Powers Real‑Time Audio/Video: Inside NERTC’s Network Library
Code Ape Tech Column
Code Ape Tech Column
Feb 2, 2021 · Backend Development

Implementing Heartbeat and Reconnection Mechanisms with Netty in Java

This article explains the concept of TCP heartbeat, demonstrates how to use Netty's IdleStateHandler to implement client‑server heartbeat detection, and provides a complete Java example with reconnection logic, retry policies, and detailed code snippets for building a robust long‑connection service.

HeartbeatNettyTCP
0 likes · 18 min read
Implementing Heartbeat and Reconnection Mechanisms with Netty in Java
Top Architect
Top Architect
Feb 1, 2021 · Backend Development

Implementing Heartbeat Mechanism and Reconnection Logic with Netty

This article explains how to implement a TCP heartbeat mechanism using Netty's IdleStateHandler, details client and server handler implementations, and demonstrates a robust reconnection strategy with customizable retry policies, providing complete Java code examples for each component.

HeartbeatNetworkingTCP
0 likes · 19 min read
Implementing Heartbeat Mechanism and Reconnection Logic with Netty
Open Source Tech Hub
Open Source Tech Hub
Jan 23, 2021 · Frontend Development

Mastering Real‑Time Chat in WeChat Mini‑Programs with WebSocket

This guide explains how to use WebSocket in a WeChat Mini‑Program to implement real‑time features such as live‑room comments, user join/leave events, likes, follows, and product shelf updates, covering protocol basics, handshake details, API usage, example code, heartbeat monitoring, and automatic reconnection strategies.

HeartbeatJavaScriptWeChat Mini Program
0 likes · 14 min read
Mastering Real‑Time Chat in WeChat Mini‑Programs with WebSocket
58 Tech
58 Tech
Jun 17, 2020 · Backend Development

Hermes: A Lightweight, High‑Reliability Mobile Message Push System Based on MQTT and Protocol Buffers

The article presents Hermes, a lightweight and highly reliable mobile push system built with MQTT and Protocol Buffers, detailing its background, technology selection, architecture, heartbeat and reconnection strategies, future optimizations, and practical results that achieve over 99% message delivery rate.

HeartbeatMQTTProtocol Buffers
0 likes · 16 min read
Hermes: A Lightweight, High‑Reliability Mobile Message Push System Based on MQTT and Protocol Buffers