gorilla

    gorilla/websocket

    #274 this week

    Package gorilla/websocket is a fast, well-tested and widely used WebSocket implementation for Go.

    networking
    messaging
    go
    golang
    gorilla
    gorilla-web-toolkit
    websocket
    Go
    BSD-2-Clause
    24.9K stars
    3.6K forks
    24.9K GitHub watchers
    Updated 9/22/2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Use Cases & Benefits

    • Implements the WebSocket protocol for real-time, full-duplex communication in Go applications.
    • Offers a fast, well-tested, and stable API that fully complies with the WebSocket RFC and passes Autobahn test suite validations.
    • Use for building real-time chat applications requiring persistent client-server connections in Go.
    • Use for developing interactive command interfaces or dashboards that need instant server updates.
    • Use for monitoring file system changes and pushing live updates to clients over WebSocket connections.

    About websocket

    Gorilla WebSocket

    GoDoc CircleCI

    Gorilla WebSocket is a Go implementation of the WebSocket protocol.

    Documentation

    Status

    The Gorilla WebSocket package provides a complete and tested implementation of the WebSocket protocol. The package API is stable.

    Installation

    go get github.com/gorilla/websocket
    

    Protocol Compliance

    The Gorilla WebSocket package passes the server tests in the Autobahn Test Suite using the application in the examples/autobahn subdirectory.

    Discover Repositories

    Search across tracked repositories by name or description