Skip to content

Commit

Permalink
chore: switch organization name
Browse files Browse the repository at this point in the history
  • Loading branch information
unxcepted committed Jun 26, 2022
1 parent a28fbd6 commit f424f07
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![CodeFactor](https://www.codefactor.io/repository/github/boomfinity-developers/wshelper/badge?s=9505f3728230d689ec3956b7aa753ab362384139)](https://www.codefactor.io/repository/github/boomfinity-developers/wshelper)
[![Go Reference](https://pkg.go.dev/badge/github.com/BOOMfinity-Developers/wshelper.svg)](https://pkg.go.dev/github.com/BOOMfinity-Developers/wshelper)
[![Go Reference](https://pkg.go.dev/badge/github.com/BOOMfinity/wshelper.svg)](https://pkg.go.dev/github.com/BOOMfinity/wshelper)


You can find usage example in [this](https://github.com/BOOMfinity-Developers/wshelper/blob/master/examples/) directory.
You can find usage example in [this](https://github.com/BOOMfinity/wshelper/blob/master/examples/) directory.

These are a tools for a [nhooyr.io/websocket](https://nhooyr.io/websocket) library.

Expand Down
6 changes: 3 additions & 3 deletions examples/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/unxcepted/websocket"

"github.com/BOOMfinity-Developers/wshelper"
"github.com/BOOMfinity-Developers/wshelper/examples/types"
"github.com/BOOMfinity/wshelper"
"github.com/BOOMfinity/wshelper/examples/types"
)

func main() {
Expand Down Expand Up @@ -40,7 +40,7 @@ func main() {
break
}
})
conn.WriteJSON(context.Background(), types.SendData{
_ = conn.WriteJSON(context.Background(), types.SendData{
Op: 1,
Data: types.Hello{
Message: "Hey server!",
Expand Down
10 changes: 5 additions & 5 deletions examples/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/unxcepted/websocket"

"github.com/BOOMfinity-Developers/wshelper"
"github.com/BOOMfinity-Developers/wshelper/examples/types"
"github.com/BOOMfinity/wshelper"
"github.com/BOOMfinity/wshelper/examples/types"
)

func main() {
Expand All @@ -18,7 +18,7 @@ func main() {
conn, err := wshelper.Accept(w, r, nil)
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
w.Write([]byte("Something went wrong while processing your request"))
_, _ = w.Write([]byte("Something went wrong while processing your request"))
return
}
conn.OnClose(types.OnCloseHandler)
Expand All @@ -40,7 +40,7 @@ func main() {
}
log.Println("I received a message from the client. Connection UUID: ", c.UUID())
log.Println(hello.Message)
c.WriteJSON(context.Background(), types.SendData{
_ = c.WriteJSON(context.Background(), types.SendData{
Op: 1,
Data: types.Hello{
Message: fmt.Sprintf("Hey client!"),
Expand All @@ -52,5 +52,5 @@ func main() {
return
})
log.Println("Listening on :5555")
http.ListenAndServe(":5555", mux)
log.Fatalln(http.ListenAndServe(":5555", mux))
}
2 changes: 1 addition & 1 deletion examples/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/unxcepted/websocket"

"github.com/BOOMfinity-Developers/wshelper"
"github.com/BOOMfinity/wshelper"
)

var (
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
module github.com/BOOMfinity-Developers/wshelper
module github.com/BOOMfinity/wshelper

go 1.14

require (
github.com/segmentio/ksuid v1.0.4
github.com/unxcepted/websocket v1.8.8-0.20220119195202-9981091db6ab
go.uber.org/atomic v1.9.0
github.com/unxcepted/websocket v1.9.0
)
14 changes: 2 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
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/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/klauspost/compress v1.14.1 h1:hLQYb23E8/fO+1u53d02A97a8UnsddcvYzq4ERRU4ds=
github.com/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/segmentio/ksuid v1.0.4 h1:sBo2BdShXjmcugAMwjugoGUdUV0pcxY5mW4xKRn3v4c=
github.com/segmentio/ksuid v1.0.4/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/unxcepted/websocket v1.8.8-0.20220119195202-9981091db6ab h1:XgiObV72AXEwQ8d/nUbQ8LCfGaFAy2HRZX3RwL6TEhA=
github.com/unxcepted/websocket v1.8.8-0.20220119195202-9981091db6ab/go.mod h1:7lZOWLcBJAXENSAC9qltJ5/whLHLZ0kOU7ydr5bnSa8=
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
github.com/unxcepted/websocket v1.9.0 h1:tRObxOk35oA+FYWISHWmnPwC89AoDNaXIo3wR7YkeQY=
github.com/unxcepted/websocket v1.9.0/go.mod h1:7lZOWLcBJAXENSAC9qltJ5/whLHLZ0kOU7ydr5bnSa8=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=

0 comments on commit f424f07

Please sign in to comment.