adhocore / websocket

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

Home Page:https://gorilla.github.io

Repository from Github https://github.comadhocore/websocketRepository from Github https://github.comadhocore/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

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.

https://gorilla.github.io

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%