13 lines
606 B
Go

// Package server contains the networking primitives for RadChat.
//
// It exposes:
// - Hub: central registry/bus of connected Clients with broadcast/register/unregister channels
// - Client: a single WebSocket connection/user state and its outbound send queue
// - Upgrader: an Origin-checking Gorilla WebSocket upgrader factory
// - Middleware: simple HTTP middleware for gzip and cache control
//
// The package is intentionally small: it focuses on safe concurrent access to
// client maps and channels, and leaves higher-level HTTP routing and handlers in
// the main package.
package server