qmetrics.net

GoWebSocket

Go WebSocket IM server with horizontal scaling

GoWebSocket is a distributed instant-messaging backend using WebSockets, HTTP APIs, gRPC, Redis, and nginx load balancing.

Overview

GoWebSocket is a real-time chat system built around long-lived WebSocket connections. It is designed for high connection counts on a single machine and for spreading load across multiple instances behind nginx.

Clients connect over WebSocket while the server tracks rooms, online users, heartbeats, and message routing. HTTP endpoints support listing users in a room, checking whether someone is online, and sending messages to one user or everyone. Internal nodes communicate with gRPC, and Redis helps instances discover each other for distributed deployment.

The bundled demo places users into a shared chat room with group messaging, random usernames, and a simple web UI. Message types include text and media flows where files are uploaded elsewhere and URLs are relayed through the socket layer. Operations such as login and heartbeat use a JSON command format suited to web and mobile clients.

Documentation covers nginx stream forwarding for WebSocket paths, kernel tuning for very large numbers of concurrent sockets, and a v2 layout that separates IM HTTP traffic from the accelerator WebSocket service while still allowing cross-node delivery.

Key features

  • WebSocket long-connection chat
  • HTTP push and presence APIs
  • gRPC between cluster nodes
  • Redis-based service registration
  • nginx WebSocket load balancing
  • Group room demo UI

Use cases

  • Real-time group chat backends
  • Push notifications to online users
  • High fan-out messaging services

Tags

Similar software

OpenIM Server

Developer-oriented instant messaging backend server

OpenIM Server is the backend for embedding chat, groups, and messaging in your apps—not a standalone consumer chat client.

★ 16.8k⟳ 18 days agoApache-2.0

Chat

Federated instant messaging server with multi-platform clients

Tinode is a Go instant messaging stack with Android, iOS, and web clients plus broad gRPC language bindings. It supports chats, channels, calls, and federation-oriented design rather than XMPP.

★ 13.6k⟳ 5 days agoGPL-3.0
Open Source Alternative to:Discord

TDLib

Cross-platform library for building Telegram clients

TDLib (Telegram Database Library) is a cross-platform client library for Telegram. It handles networking, encryption, and local storage so custom apps can be built from many programming languages.

★ 9.3k⟳ yesterdayBSL-1.0

Synapse

Matrix homeserver for secure real-time messaging

Synapse implements a Matrix homeserver for federated chat and VoIP. Element maintains it as part of the Matrix stack, with standalone install documentation.

★ 4.8k⟳ todayAGPL-3.0

Chat SDK Android

Open-source instant messaging framework for Android

Chat SDK is a featured instant messaging framework for Android that integrates with Firebase or XMPP backends. It supports public rooms, several login styles, and push notifications.

★ 1.6k⟳ 10 months agoGPL-3.0 · open core

Haven

Self-hosted private chat with voice and screen sharing

Haven is a Discord-like chat server you run on your own hardware. Friends join through a browser or apps for text, voice, screen sharing, and encrypted direct messages without a commercial host.

★ 1.2k⟳ 2 days agoAGPL-3.0
Open Source Alternative to:Discord