I think these Golang websocket libraries are all broken.
Alternatively, the websocket protocol is another victim of Google stepping in and "embracing" it but adding pseudo-optional features to it such as compression and weird parameters that not all libraries support in the same way but some will assume others do support.