You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Advantages of this library (and [coder/websocket](https://github.com/coder/websocket)):
114
113
115
114
- Minimal and idiomatic API
116
-
- Compare godoc of [github.com/coder/websocket](https://pkg.go.dev/github.com/coder/websocket) with [gorilla/websocket](https://pkg.go.dev/github.com/gorilla/websocket) side by side.
- Compare godoc of [github.com/paralin/go-websocket](https://pkg.go.dev/github.com/paralin/go-websocket) with [gorilla/websocket](https://pkg.go.dev/github.com/gorilla/websocket) side by side.
- Gorilla writes directly to a net.Conn and so duplicates features of net/http.Client.
123
122
- Concurrent writes
124
123
- Close handshake ([gorilla/websocket#448](https://github.com/gorilla/websocket/issues/448))
125
-
- Idiomatic [ping pong](https://pkg.go.dev/github.com/coder/websocket#Conn.Ping) API
124
+
- Idiomatic [ping pong](https://pkg.go.dev/github.com/paralin/go-websocket#Conn.Ping) API
126
125
- Gorilla requires registering a pong callback before sending a Ping
127
126
- Can target Wasm ([gorilla/websocket#432](https://github.com/gorilla/websocket/issues/432))
128
-
- Transparent message buffer reuse with [wsjson](https://pkg.go.dev/github.com/coder/websocket/wsjson) subpackage
127
+
- Transparent message buffer reuse with [wsjson](https://pkg.go.dev/github.com/paralin/go-websocket/wsjson) subpackage
129
128
-[1.75x](https://github.com/nhooyr/websocket/releases/tag/v1.7.4) faster WebSocket masking implementation in pure Go
130
129
- Gorilla's implementation is slower and uses [unsafe](https://golang.org/pkg/unsafe/).
131
130
Soon we'll have assembly and be 3x faster [#326](https://github.com/nhooyr/websocket/pull/326)
132
131
- Full [permessage-deflate](https://tools.ietf.org/html/rfc7692) compression extension support
133
132
- Gorilla only supports no context takeover mode
134
-
-[CloseRead](https://pkg.go.dev/github.com/coder/websocket#Conn.CloseRead) helper for write only connections ([gorilla/websocket#492](https://github.com/gorilla/websocket/issues/492))
133
+
-[CloseRead](https://pkg.go.dev/github.com/paralin/go-websocket#Conn.CloseRead) helper for write only connections ([gorilla/websocket#492](https://github.com/gorilla/websocket/issues/492))
135
134
136
135
#### golang.org/x/net/websocket
137
136
138
137
[golang.org/x/net/websocket](https://pkg.go.dev/golang.org/x/net/websocket) is deprecated.
139
138
See [golang/go/issues/18152](https://github.com/golang/go/issues/18152).
140
139
141
-
The [net.Conn](https://pkg.go.dev/github.com/coder/websocket#NetConn) can help in transitioning
142
-
to github.com/coder/websocket.
140
+
The [net.Conn](https://pkg.go.dev/github.com/paralin/go-websocket#NetConn) can help in transitioning
141
+
to this library.
143
142
144
143
#### gobwas/ws
145
144
@@ -148,7 +147,7 @@ in an event driven style for performance. See the author's [blog post](https://m
148
147
149
148
However it is quite bloated. See https://pkg.go.dev/github.com/gobwas/ws
150
149
151
-
When writing idiomatic Go, github.com/coder/websocket will be faster and easier to use.
150
+
When writing idiomatic Go, this library will be faster and easier to use.
152
151
153
152
#### lesismal/nbio
154
153
@@ -157,4 +156,4 @@ event driven for performance reasons.
157
156
158
157
However it is quite bloated. See https://pkg.go.dev/github.com/lesismal/nbio
159
158
160
-
When writing idiomatic Go, github.com/coder/websocket will be faster and easier to use.
159
+
When writing idiomatic Go, this library will be faster and easier to use.
0 commit comments