On Thursday, July 7, 2016 at 12:45:04 AM UTC-7, Johann Höchtl wrote:
>
> How am I supposed to signal error conditions when using websockets.
>

If you want to close the connection on error, then send a close message.

https://godoc.org/github.com/gorilla/websocket#CloseMessage
https://godoc.org/github.com/gorilla/websocket#FormatCloseMessage
https://godoc.org/github.com/gorilla/websocket#pkg-constants

If you don't want to close the connection, then follow the advice of others 
on this thread.

>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to