The WebSocket package provides a complete and tested implementation of the WebSocket protocol. The package API is stable.
go get github.com/uole/websocket
The WebSocket package passes the server tests in the Autobahn Test Suite using the application in the examples/autobahn subdirectory.