title: Gorilla WebSocket WriteMessage errors - Go Lang
body: <p>I am currently experimenting with Gorilla WebSocket package. When sending a message using <a href="https://godoc.org/github.com/gorilla/websocket#Conn.WriteMessage" rel="nofollow noreferrer"><code>WriteMessage</code></a>, if an error is returned, what should I do? Should I start the <a href="https://www.rfc-editor.org/rfc/rfc6455#section-7.1.2" rel="nofollow noreferrer">Closing Handshake</a> or assume that if there is a problem it will be caught using the <a href="https://godoc.org/github.com/gorilla/websocket#Conn.ReadMessage" rel="nofollow noreferrer"><code>ReadMessage</code></a> method and simply log the error?</p>