From 5b99b168c372d0dac6a7ccbc618d1f8ab63be09b Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Mon, 3 Feb 2025 18:46:35 +0800 Subject: [PATCH] fix typo Signed-off-by: Yang Hau --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 9562ffd4..f687d78e 100644 --- a/conn.go +++ b/conn.go @@ -991,7 +991,7 @@ func (c *Conn) handleProtocolError(message string) error { if len(data) > maxControlFramePayloadSize { data = data[:maxControlFramePayloadSize] } - // Make a best effor to send a close message describing the problem. + // Make a best effort to send a close message describing the problem. _ = c.WriteControl(CloseMessage, data, time.Now().Add(writeWait)) return errors.New("websocket: " + message) }