Skip to content

Commit 8f01a85

Browse files
committed
Improve language in README.md
1 parent 3047f29 commit 8f01a85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ production.
105105
https://github.com/gorilla/websocket
106106

107107
This package is the community standard but it is 6 years old and over time
108-
has accumulated cruft. Using is not clear as there are many ways to do things
109-
and there are some rough edges. Just compare the godoc of
108+
has accumulated cruft. There are too many ways to do the same thing.
109+
Just compare the godoc of
110110
[nhooyr/websocket](https://godoc.org/github.com/nhooyr/websocket) side by side with
111111
[gorilla/websocket](https://godoc.org/github.com/gorilla/websocket).
112112

@@ -122,10 +122,10 @@ Pure conjecture but I would argue that the sprawling API has made it difficult t
122122
Moreover, nhooyr/websocket has support for newer Go idioms such as context.Context and
123123
also uses net/http's Client and ResponseWriter directly for WebSocket handshakes.
124124
gorilla/websocket writes its handshakes to the underlying net.Conn which means
125-
it has to reinvent hooks for TLS and proxying and prevents support of HTTP/2.
125+
it has to reinvent hooks for TLS and proxies and prevents support of HTTP/2.
126126

127127
Some more advantages of nhooyr/websocket are that it supports concurrent writes and makes it
128-
very easy to close the connection with a status code and reason compared to gorilla/websocket.
128+
very easy to close the connection with a status code and reason.
129129

130130
In terms of performance, there is no significant difference between the two. Will update
131131
with benchmarks soon ([#75](https://github.com/nhooyr/websocket/issues/75)).

0 commit comments

Comments
 (0)