The Gorilla WebSocket package provides a complete and tested implementation of the WebSocket protocol.