Go-WebSocket is a Go implementation of the WebSocket protocol.
Go-WebSocket passes the server tests in the Autobahn WebSockets Test Suite using the application in the test subdirectory.
go get github.com/garyburd/go-websocket/websocket
Go-WebSocket is available under the Apache License, Version 2.0.
The gowebsocket package wraps the websocket.Conn type with an implementation of the net.Conn interface.
| Go-WebSocket | go.net | |
|---|---|---|
| Protocol support | RFC 6455 | RFC 6455, Hixie 76, Hixie 75 |
| Send pings and receive pongs | Yes | No |
| Send close message | Yes | No |
| Limit size of received message | Yes | No |
| Stream messages | Yes | No |
| Specify IO buffer size | Yes | No |