From c88acc496daa81cbf5781e112ef0f4e298c8c042 Mon Sep 17 00:00:00 2001
From: a <a@a.a>
Date: Sat, 17 Sep 2022 11:03:34 -0500
Subject: [PATCH] revert again

---
 websocket.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/websocket.go b/websocket.go
index 8b4c86d..3b2a487 100644
--- a/websocket.go
+++ b/websocket.go
@@ -160,10 +160,10 @@ func heartbeat(ctx context.Context, c *websocket.Conn, d time.Duration) {
 func newWebsocketCodec(ctx context.Context, c *websocket.Conn, host string, req http.Header) ServerCodec {
 	c.SetReadLimit(wsMessageSizeLimit)
 	jsonWriter := func(v any) error {
-		return wsjson.Write(ctx, c, v)
+		return wsjson.Write(context.Background(), c, v)
 	}
 	jsonReader := func(v any) error {
-		return wsjson.Read(ctx, c, v)
+		return wsjson.Read(context.Background(), c, v)
 	}
 	conn := websocket.NetConn(ctx, c, websocket.MessageText)
 	wc := &websocketCodec{
-- 
GitLab