@@ -8,7 +8,7 @@ websocket is a minimal and idiomatic WebSocket library for Go.
8
8
## Install
9
9
10
10
``` bash
11
- go get nhooyr.io/websocket
11
+ go get nhooyr.io/websocket@v1.0.0
12
12
```
13
13
14
14
## Features
@@ -19,7 +19,7 @@ go get nhooyr.io/websocket
19
19
- Thorough tests, fully passes the [ autobahn-testsuite] ( https://github.com/crossbario/autobahn-testsuite )
20
20
- Zero dependencies outside of the stdlib for the core library
21
21
- JSON and ProtoBuf helpers in the wsjson and wspb subpackages
22
- - High performance, memory reuse by default
22
+ - Highly optimized by default
23
23
- Concurrent writes out of the box
24
24
25
25
## Roadmap
@@ -129,8 +129,9 @@ gorilla/websocket requires you to constantly read from the connection to respond
129
129
even if you don't expect the peer to send any messages.
130
130
131
131
In terms of performance, the differences depend on your application code. nhooyr/websocket
132
- reuses buffers efficiently out of the box whereas gorilla/websocket does not. As mentioned
133
- above, it also supports concurrent writers out of the box.
132
+ reuses buffers efficiently out of the box if you use the wsjson and wspb subpackages whereas
133
+ gorilla/websocket does not. As mentioned above, nhooyr/websocket also supports concurrent
134
+ writers out of the box.
134
135
135
136
The only performance con to nhooyr/websocket is that uses two extra goroutines. One for
136
137
reading pings, pongs and close frames async to application code and another to support
0 commit comments