File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ go get nhooyr.io/websocket
2828
2929## Roadmap
3030
31- - [ ] WebSockets over HTTP/2 [ #4 ] ( https://github.com/nhooyr/websocket/issues/4 )
31+ - [ ] Compression Extensions [ #163 ] ( https://github.com/nhooyr/websocket/pull/163 )
32+ - [ ] HTTP/2 [ #4 ] ( https://github.com/nhooyr/websocket/issues/4 )
3233
3334## Examples
3435
@@ -65,9 +66,6 @@ http.HandlerFunc(func (w http.ResponseWriter, r *http.Request) {
6566
6667### Client
6768
68- The client side of this library requires at least Go 1.12 as it uses a [ new feature
69- in net/http] ( https://github.com/golang/go/issues/26937#issuecomment-415855861 ) to perform WebSocket handshakes.
70-
7169``` go
7270ctx , cancel := context.WithTimeout (context.Background (), time.Minute )
7371defer cancel ()
@@ -94,9 +92,6 @@ c.Close(websocket.StatusNormalClosure, "")
9492- net.Conn is never exposed as WebSocket over HTTP/2 will not have a net.Conn.
9593- Using net/http's Client for dialing means we do not have to reinvent dialing hooks
9694 and configurations like other WebSocket libraries
97- - We do not support the deflate compression extension because Go's compress/flate library
98- is very memory intensive and browsers do not handle WebSocket compression intelligently.
99- See [ #5 ] ( https://github.com/nhooyr/websocket/issues/5 )
10095
10196## Comparison
10297
You can’t perform that action at this time.
0 commit comments