diff --git a/cmd/server/server.go b/cmd/server/server.go index 87964d8..7311015 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -8,7 +8,7 @@ import ( "github.com/Chatterino/twitch-pubsub-server-test/internal/routes/liveupdates" "github.com/Chatterino/twitch-pubsub-server-test/internal/routes/liveupdates/bttv" "github.com/Chatterino/twitch-pubsub-server-test/internal/routes/liveupdates/seventv" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) type server struct { diff --git a/go.mod b/go.mod index 4db5b24..f98385c 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.20 require ( git.kotmisia.pl/Mm2PL/examples v1.0.0 + github.com/coder/websocket v1.8.12 honnef.co/go/tools v0.4.7 - nhooyr.io/websocket v1.8.11 ) require ( diff --git a/go.sum b/go.sum index b964b9f..e9ef7f7 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ git.kotmisia.pl/Mm2PL/examples v1.0.0 h1:O/FUxiR7shJWTWhHBkEHFYvO/3CJfh9L6c90t6s git.kotmisia.pl/Mm2PL/examples v1.0.0/go.mod h1:eyZjuAOMmFaZfyD3d+L5ghIGDVu505bpSvm1xVoapn8= github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo= +github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs= golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9 h1:6WHiuFL9FNjg8RljAaT7FNUuKDbvMqS1i5cr2OE2sLQ= golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= @@ -13,5 +15,3 @@ golang.org/x/tools v0.12.1-0.20230825192346-2191a27a6dc5 h1:Vk4mysSz+GqQK2eqgWbo golang.org/x/tools v0.12.1-0.20230825192346-2191a27a6dc5/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= honnef.co/go/tools v0.4.7 h1:9MDAWxMoSnB6QoSqiVr7P5mtkT9pOc1kSxchzPCnqJs= honnef.co/go/tools v0.4.7/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0= -nhooyr.io/websocket v1.8.11 h1:f/qXNc2/3DpoSZkHt1DQu6rj4zGC8JmkkLkWss0MgN0= -nhooyr.io/websocket v1.8.11/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c= diff --git a/internal/routes/authentication_required.go b/internal/routes/authentication_required.go index 4a8af86..d394888 100644 --- a/internal/routes/authentication_required.go +++ b/internal/routes/authentication_required.go @@ -8,7 +8,7 @@ import ( "log" "net/http" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func authenticatedHandler(ctx context.Context, c *websocket.Conn, r *http.Request) bool { diff --git a/internal/routes/automod_held.go b/internal/routes/automod_held.go index 678e9f3..924c74d 100644 --- a/internal/routes/automod_held.go +++ b/internal/routes/automod_held.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) /* diff --git a/internal/routes/common.go b/internal/routes/common.go index ed39d6b..7c9c92b 100644 --- a/internal/routes/common.go +++ b/internal/routes/common.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func handleListen(ctx context.Context, c *websocket.Conn, r *http.Request, msg Message) { diff --git a/internal/routes/default.go b/internal/routes/default.go index 8b50e58..efe8971 100644 --- a/internal/routes/default.go +++ b/internal/routes/default.go @@ -3,7 +3,7 @@ package routes import ( "net/http" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func Default(c *websocket.Conn, r *http.Request) { diff --git a/internal/routes/dontrespondtoping.go b/internal/routes/dontrespondtoping.go index c85a552..2116412 100644 --- a/internal/routes/dontrespondtoping.go +++ b/internal/routes/dontrespondtoping.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func DontRespondToPing(c *websocket.Conn, r *http.Request) { diff --git a/internal/routes/liveupdates/basic-sub-unsub.go b/internal/routes/liveupdates/basic-sub-unsub.go index 501a166..15f8337 100644 --- a/internal/routes/liveupdates/basic-sub-unsub.go +++ b/internal/routes/liveupdates/basic-sub-unsub.go @@ -9,7 +9,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func BasicSubUnsub(c *websocket.Conn, r *http.Request) { diff --git a/internal/routes/liveupdates/bttv/basic.go b/internal/routes/liveupdates/bttv/basic.go index ab23a09..355daa2 100644 --- a/internal/routes/liveupdates/bttv/basic.go +++ b/internal/routes/liveupdates/bttv/basic.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) const ( diff --git a/internal/routes/liveupdates/bttv/common.go b/internal/routes/liveupdates/bttv/common.go index c070671..16674f0 100644 --- a/internal/routes/liveupdates/bttv/common.go +++ b/internal/routes/liveupdates/bttv/common.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func ConvertMessage[D MessageType](c *Message[json.RawMessage]) (Message[D], error) { diff --git a/internal/routes/liveupdates/seventv/basic.go b/internal/routes/liveupdates/seventv/basic.go index 44065ce..9828584 100644 --- a/internal/routes/liveupdates/seventv/basic.go +++ b/internal/routes/liveupdates/seventv/basic.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) const ( diff --git a/internal/routes/liveupdates/seventv/common.go b/internal/routes/liveupdates/seventv/common.go index 7fc36d4..4504fe9 100644 --- a/internal/routes/liveupdates/seventv/common.go +++ b/internal/routes/liveupdates/seventv/common.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func ConvertMessage[D MessageType](c *Message[json.RawMessage]) (Message[D], error) { diff --git a/internal/routes/liveupdates/seventv/heartbeat.go b/internal/routes/liveupdates/seventv/heartbeat.go index dc130fe..55d8b71 100644 --- a/internal/routes/liveupdates/seventv/heartbeat.go +++ b/internal/routes/liveupdates/seventv/heartbeat.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func NoHeartbeat(c *websocket.Conn, r *http.Request) { diff --git a/internal/routes/moderator_actions_user_banned.go b/internal/routes/moderator_actions_user_banned.go index d3b03bf..b63839c 100644 --- a/internal/routes/moderator_actions_user_banned.go +++ b/internal/routes/moderator_actions_user_banned.go @@ -6,7 +6,7 @@ import ( "time" "git.kotmisia.pl/Mm2PL/examples" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func ModeratorActionsUserBanned(c *websocket.Conn, r *http.Request) { diff --git a/internal/routes/randomdisconnect.go b/internal/routes/randomdisconnect.go index e887acb..17308a8 100644 --- a/internal/routes/randomdisconnect.go +++ b/internal/routes/randomdisconnect.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func RandomDisconnect(c *websocket.Conn, r *http.Request) { diff --git a/internal/routes/receive_whisper.go b/internal/routes/receive_whisper.go index 6169c46..ab54eac 100644 --- a/internal/routes/receive_whisper.go +++ b/internal/routes/receive_whisper.go @@ -5,7 +5,7 @@ import ( "net/http" "time" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func ReceiveWhisper(c *websocket.Conn, r *http.Request) {