qmetrics.net

goWebSocket

WebSocket-based distributed instant messaging backend

A distributed instant messaging system built on WebSocket connections, with group chat, online presence, and HTTP APIs for sending messages.

Overview

goWebSocket is a distributed instant messaging stack that keeps long-lived WebSocket connections to clients while separating message delivery from other business logic. It targets chat scenarios where the server must push data to online users and expose simple APIs to check presence and deliver messages.

The server uses WebSocket for client links and can scale horizontally: multiple instances register in Redis and communicate with gRPC. Nginx can terminate WebSocket traffic and load-balance across machines. Clients join rooms identified by appID, support login and heartbeat commands over JSON, and can send text plus image or voice payloads via file URLs.

Operators clone the project, configure it, and start it with Redis and the Go runtime as dependencies. A built-in web chat page lets users enter a shared room for group chat. HTTP endpoints list room users, query online status, and send messages to one user or everyone; RPC interfaces mirror key operations for internal services.

Documentation in the materials describes nginx WebSocket proxying, connection management with timeouts and heartbeats, and memory estimates for very large numbers of concurrent connections on a single host. Login and authorization are called out as areas still open to hardening.

Key features

  • WebSocket long-lived client connections
  • Horizontal deployment with gRPC between nodes
  • Redis-based service discovery across instances
  • Group chat with shared chat room UI
  • HTTP APIs for push and presence queries
  • JSON login and heartbeat protocol
  • Text, image, and voice message formats
  • Nginx load balancing for WebSocket and HTTP

Use cases

  • Real-time group chat demonstrations
  • Keeping persistent links for server push
  • Separating IM transport from other backends
  • High-concurrency WebSocket connection experiments

Tags

Similar software

Rocket.Chat

Open-source secure team communications platform for government and defense

Open-source communications platform for messaging, voice, video and governed AI. It can be self-hosted, run in a secure cloud or deployed air-gapped, and federates natively with Matrix and XMPP.

  • Messaging, voice, video and file sharing
  • Native Matrix and XMPP federation
  • End-to-end encryption
TypeScriptWeb, Linux, macOS, WindowsDetails →
★ 46.6k⟳ todayMIT · open core
Open Source Alternative to:DiscordMicrosoft Teams+3

Buzz

Self-hostable Nostr workspace for humans and AI agents

Buzz is a self-hostable team workspace where people and AI agents share channels on a relay you control. Messages, workflows, reviews, and git activity are signed Nostr events in one searchable log.

  • Nostr relay with signed event log
  • Channels, threads, DMs, and canvases
  • AI agents as scoped channel members
RustDocker, CLI, macOS, LinuxDetails →
★ 37.9k⟳ todayApache-2.0
Open Source Alternative to:DiscordMicrosoft Teams+1

Nextcloud

Self-hosted content collaboration platform for files, calendars, contacts and chat

Nextcloud is a self-hosted platform for storing, syncing and sharing files, calendars and contacts, extended by apps for chat, video calls, online office editing and workflow automation.

  • File storage, sync and sharing
  • Calendar, contacts and mail
  • Audio/video conferencing and chat
PHPWebDetails →
★ 37.7k⟳ todayAGPL-3.0
Open Source Alternative to:DropboxGoogle Drive+8

Jitsi Meet

Open-source video conferencing for browsers, mobile and embedding

Open-source video conferencing platform that runs in the browser or in mobile apps. You can use the hosted meet.jit.si service, run your own instance, or embed meetings in your own web application.

  • Browser-based meetings with no install
  • Android and iOS apps
  • HD audio and video
TypeScriptWeb, Linux, Android, iOSDetails →
★ 30.4k⟳ todayApache-2.0
Open Source Alternative to:Google MeetSkype for Business+1

Zulip

Open-source team chat with topic-based threading

Zulip is an open-source team chat app that organizes conversations into topics within channels, supporting both live and asynchronous discussion. It can be self-hosted or used through Zulip Cloud.

  • Topic-based threading within channels
  • Inbox of unread conversations
  • Live and asynchronous conversations
PythonWeb, Linux, DockerDetails →
★ 26.4k⟳ todayApache-2.0
Open Source Alternative to:DiscordSlack+1

Etherpad

Self-hosted real-time collaborative document editor

Etherpad is a browser-based editor where multiple people write together in real time. Each keystroke is attributed, revisions are kept, and a timeslider replays full pad history.

  • Real-time multi-user editing
  • Per-author attribution and colours
  • Timeslider document history replay
TypeScriptWeb, Linux, macOS, WindowsDetails →
★ 18.6k⟳ todayApache-2.0
Open Source Alternative to:Google DocsQuip