Skip to content

Commit

Permalink
Docs: improve clarity of websocket Handler docs
Browse files Browse the repository at this point in the history
  • Loading branch information
System-Glitch committed Apr 29, 2024
1 parent 2843481 commit d7c73ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7c73ba

Please sign in to comment.