good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 8060f3a3 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

README.md: Mention gorilla advantage re no extra context cancellation goroutine

Not sure how/when this was lost but an important disadvantage to note.
parent 454aee86
Branches
Tags
No related merge requests found
......@@ -102,6 +102,8 @@ Advantages of [gorilla/websocket](https://github.com/gorilla/websocket):
- Mature and widely used
- [Prepared writes](https://pkg.go.dev/github.com/gorilla/websocket#PreparedMessage)
- Configurable [buffer sizes](https://pkg.go.dev/github.com/gorilla/websocket#hdr-Buffers)
- No extra goroutine per connection to support cancellation with context.Context. This costs nhooyr.io/websocket 2 KB of memory per connection.
- Will be removed soon with [context.AfterFunc](https://github.com/golang/go/issues/57928). See [#411](https://github.com/nhooyr/websocket/issues/411)
Advantages of nhooyr.io/websocket:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment