tidied up websocket send a little to use the writePump instead of writing to the connection directly
better error message
Merge pull request #519 from mikedewar/lossywebsocket

tidied up websocket a little