fork of code.google.com/p/go.net/websocket