From d7c73baf17fefa816d67b45d55e9590e149c555a Mon Sep 17 00:00:00 2001 From: SystemGlitch Date: Mon, 29 Apr 2024 11:19:14 +0200 Subject: [PATCH] Docs: improve clarity of websocket Handler docs --- websocket/websocket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket/websocket.go b/websocket/websocket.go index a5307e5c..b532b529 100644 --- a/websocket/websocket.go +++ b/websocket/websocket.go @@ -199,8 +199,8 @@ func (u *Upgrader) makeUpgrader(request *goyave.Request) *ws.Upgrader { // If the websocket Handler returns an error that is not a CloseError, the Upgrader's error // handler will be executed and the close frame sent to the client will have status code // 1011 (internal server error) and "Internal server error" as message. -// If debug is enabled, the message will be set to the one of the error returned by the -// websocket Handler. Otherwise the close frame will have status code 1000 (normal closure) +// If debug is enabled, the message will be the error message returned by the +// websocket handler. Otherwise the close frame will have status code 1000 (normal closure) // and "Server closed connection" as a message. // // This HTTP handler features a recovery mechanism. If the websocket Handler panics,