From f864e8edcf2b857c965490a6743b8a496794cc90 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Wed, 5 Nov 2025 20:28:31 +0000 Subject: [PATCH] fixup! fixup! Update go.mod and go.sum --- websocket.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/websocket.go b/websocket.go index 6a65aeb..d840370 100644 --- a/websocket.go +++ b/websocket.go @@ -89,7 +89,9 @@ func (wsp *WebSocketProxy) HandleWebSocket(c *fiber.Ctx) error { } return websocket.New(func(clientConn *websocket.Conn) { - wsp.handleConnection(c.Context(), clientConn) + // Use background context for long-lived WebSocket connections + // The original request context expires after the upgrade + wsp.handleConnection(context.Background(), clientConn) })(c) }