gorilla

    gorilla/websocket

    #294 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.8K stars
    3.6K forks
    24.8K GitHub watchers
    Updated 7/4/2026
    View on GitHub

    Backblaze Generative Media Hackathon

    Build the next generation of AI media apps with Genblaze, stored on Backblaze B2. $10,000 in prizes.

    Enter the hackathon

    Loading star history...

    Use Cases & Benefits

    • Gorilla WebSocket is a fast, well-tested WebSocket implementation for the Go programming language.
    • It supports the RFC 6455 WebSocket protocol and passes the Autobahn Test Suite for protocol compliance.
    • The package is stable, widely used with over 24,000 stars, and includes examples for chat, command, client-server, and file watch use cases.
    • Organizations can use it to build real-time, bidirectional communication features in Go applications with confidence in stability and protocol adherence.
    • Ideal for production systems requiring efficient WebSocket communication such as chat apps, live notifications, and real-time data streaming.

    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