Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
/ websocket Public archive
forked from gorilla/websocket

Package gorilla/websocket is a fast, well-tested and widely used WebSocket implementation for Go. This fork exposes NewConn & SetupCompression API.

License

Notifications You must be signed in to change notification settings

adhocore/websocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

378 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

then in go.mod, add

replace github.com/gorilla/websocket v1.5.1 => github.com/adhocore/websocket v1.5.1

then run

go mod tidy

Usage

import "github.com/gorilla/websocket"

buf := []byte
// netConn is net.Conn instance
conn := websocket.NewConn(netConn, true, 2048, 2048, nil, nil, buf)

Protocol Compliance

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

About

Package gorilla/websocket is a fast, well-tested and widely used WebSocket implementation for Go. This fork exposes NewConn & SetupCompression API.

Resources

License

Stars

Watchers

Forks

Languages

  • Go 100.0%