diff --git a/stream.go b/stream.go index 5e7acd3..468ab6b 100644 --- a/stream.go +++ b/stream.go @@ -165,7 +165,7 @@ func serveWebsocket(ctx context.Context, w http.ResponseWriter, r *http.Request, } // write the response - if err := wsutil.WriteServerMessage(rw, op, buf); err != nil { + if err = wsutil.WriteServerMessage(rw, op, buf); err != nil { if logger.V(logger.ErrorLevel) { logger.Error(ctx, err.Error()) }