go-websocket

Community

Add real-time WebSocket patterns to Go backends.

Authoranicdh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

WebSocket real-time communication patterns for Go backends using Chi and nhooyr.io/websocket enable bidirectional, low-latency communication for live features such as chat, dashboards, and collaborative tools.

Core Features & Use Cases

  • Connection upgrade with Chi and authentication before upgrade.
  • Hub/Room pattern for broadcast with safe concurrent writes.
  • Read/Write pumps with context cancellation and deadlines.
  • Heartbeat with Ping/Pong to detect dead connections.
  • Graceful shutdown and error handling with close codes.

Quick Start

Implement a WebSocket endpoint in a Go server using Chi and nhooyr.io/websocket following the patterns described.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-websocket
Download link: https://github.com/anicdh/agstack/archive/main.zip#go-websocket

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.