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
- No extra goroutine per connection to support cancellation with context.Context. This costs github.com/coder/websocket 2 KB of memory per connection.
113
-
- Will be removed soon with [context.AfterFunc](https://github.com/golang/go/issues/57928). See [#411](https://github.com/nhooyr/websocket/issues/411)
113
+
- Will be removed soon with [context.AfterFunc](https://github.com/golang/go/issues/57928). See [#411](https://github.com/coder/websocket/issues/411)
114
114
115
115
Advantages of github.com/coder/websocket:
116
116
@@ -128,9 +128,9 @@ Advantages of github.com/coder/websocket:
128
128
- Gorilla requires registering a pong callback before sending a Ping
129
129
- Can target Wasm ([gorilla/websocket#432](https://github.com/gorilla/websocket/issues/432))
130
130
- Transparent message buffer reuse with [wsjson](https://pkg.go.dev/github.com/coder/websocket/wsjson) subpackage
131
-
-[1.75x](https://github.com/nhooyr/websocket/releases/tag/v1.7.4) faster WebSocket masking implementation in pure Go
131
+
-[1.75x](https://github.com/coder/websocket/releases/tag/v1.7.4) faster WebSocket masking implementation in pure Go
132
132
- Gorilla's implementation is slower and uses [unsafe](https://golang.org/pkg/unsafe/).
133
-
Soon we'll have assembly and be 3x faster [#326](https://github.com/nhooyr/websocket/pull/326)
133
+
Soon we'll have assembly and be 3x faster [#326](https://github.com/coder/websocket/pull/326)
134
134
- Full [permessage-deflate](https://tools.ietf.org/html/rfc7692) compression extension support
135
135
- Gorilla only supports no context takeover mode
136
136
-[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))
0 commit comments