diff --git a/.version b/.version new file mode 100644 index 0000000..a4f52a5 --- /dev/null +++ b/.version @@ -0,0 +1 @@ +3.2.0 \ No newline at end of file diff --git a/acceptance_test.go b/acceptance_test.go index 7983b61..f0be032 100644 --- a/acceptance_test.go +++ b/acceptance_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" + "github.com/coder/websocket" "github.com/stretchr/testify/require" "github.com/txix-open/etp/v3" "github.com/txix-open/etp/v3/msg" - "nhooyr.io/websocket" ) type CallHandler struct { diff --git a/client.go b/client.go index 4c23004..5dae1a3 100644 --- a/client.go +++ b/client.go @@ -6,8 +6,8 @@ import ( "fmt" "sync" + "github.com/coder/websocket" "github.com/txix-open/etp/v3/internal" - "nhooyr.io/websocket" ) var ( diff --git a/client_options.go b/client_options.go index dc0cbf7..31a0195 100644 --- a/client_options.go +++ b/client_options.go @@ -1,7 +1,7 @@ package etp import ( - "nhooyr.io/websocket" + "github.com/coder/websocket" ) type DialOptions = websocket.DialOptions diff --git a/client_test.go b/client_test.go index a920793..62ed4e6 100644 --- a/client_test.go +++ b/client_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" + "github.com/coder/websocket" "github.com/stretchr/testify/require" "github.com/txix-open/etp/v3" "github.com/txix-open/etp/v3/msg" "github.com/txix-open/etp/v3/store" - "nhooyr.io/websocket" ) func TestClient_OnDisconnect(t *testing.T) { diff --git a/close.go b/close.go index ef9e463..f038ff0 100644 --- a/close.go +++ b/close.go @@ -3,7 +3,7 @@ package etp import ( "errors" - "nhooyr.io/websocket" + "github.com/coder/websocket" ) func IsNormalClose(err error) bool { diff --git a/conn.go b/conn.go index f523d16..ab84ad1 100644 --- a/conn.go +++ b/conn.go @@ -5,11 +5,11 @@ import ( "fmt" "net/http" + "github.com/coder/websocket" "github.com/txix-open/etp/v3/bpool" "github.com/txix-open/etp/v3/internal" "github.com/txix-open/etp/v3/msg" "github.com/txix-open/etp/v3/store" - "nhooyr.io/websocket" ) type Conn struct { diff --git a/go.mod b/go.mod index d886da4..ac86876 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/txix-open/etp/v3 go 1.22 -require nhooyr.io/websocket v1.8.11 +require github.com/coder/websocket v1.8.12 require ( github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index 10202bf..2c6ffe5 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo= +github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -8,5 +10,3 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -nhooyr.io/websocket v1.8.11 h1:f/qXNc2/3DpoSZkHt1DQu6rj4zGC8JmkkLkWss0MgN0= -nhooyr.io/websocket v1.8.11/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c= diff --git a/server.go b/server.go index c620611..7697bde 100644 --- a/server.go +++ b/server.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" + "github.com/coder/websocket" "github.com/txix-open/etp/v3/internal" - "nhooyr.io/websocket" ) type Server struct { diff --git a/server_options.go b/server_options.go index 9676d34..edddfb7 100644 --- a/server_options.go +++ b/server_options.go @@ -1,7 +1,7 @@ package etp import ( - "nhooyr.io/websocket" + "github.com/coder/websocket" ) const (