Skip to content

Commit 4d34c45

Browse files
committed
docs: update issue links to coder repo
1 parent 7d7c644 commit 4d34c45

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ go get github.com/coder/websocket
3636

3737
See GitHub issues for minor issues but the major future enhancements are:
3838

39-
- [ ] Perfect examples [#217](https://github.com/nhooyr/websocket/issues/217)
40-
- [ ] wstest.Pipe for in memory testing [#340](https://github.com/nhooyr/websocket/issues/340)
41-
- [ ] Ping pong heartbeat helper [#267](https://github.com/nhooyr/websocket/issues/267)
42-
- [ ] Ping pong instrumentation callbacks [#246](https://github.com/nhooyr/websocket/issues/246)
43-
- [ ] Graceful shutdown helpers [#209](https://github.com/nhooyr/websocket/issues/209)
44-
- [ ] Assembly for WebSocket masking [#16](https://github.com/nhooyr/websocket/issues/16)
45-
- WIP at [#326](https://github.com/nhooyr/websocket/pull/326), about 3x faster
46-
- [ ] HTTP/2 [#4](https://github.com/nhooyr/websocket/issues/4)
47-
- [ ] The holy grail [#402](https://github.com/nhooyr/websocket/issues/402)
39+
- [ ] Perfect examples [#217](https://github.com/coder/websocket/issues/217)
40+
- [ ] wstest.Pipe for in memory testing [#340](https://github.com/coder/websocket/issues/340)
41+
- [ ] Ping pong heartbeat helper [#267](https://github.com/coder/websocket/issues/267)
42+
- [ ] Ping pong instrumentation callbacks [#246](https://github.com/coder/websocket/issues/246)
43+
- [ ] Graceful shutdown helpers [#209](https://github.com/coder/websocket/issues/209)
44+
- [ ] Assembly for WebSocket masking [#16](https://github.com/coder/websocket/issues/16)
45+
- WIP at [#326](https://github.com/coder/websocket/pull/326), about 3x faster
46+
- [ ] HTTP/2 [#4](https://github.com/coder/websocket/issues/4)
47+
- [ ] The holy grail [#402](https://github.com/coder/websocket/issues/402)
4848

4949
## Examples
5050

@@ -110,7 +110,7 @@ Advantages of [gorilla/websocket](https://github.com/gorilla/websocket):
110110
- [Prepared writes](https://pkg.go.dev/github.com/gorilla/websocket#PreparedMessage)
111111
- Configurable [buffer sizes](https://pkg.go.dev/github.com/gorilla/websocket#hdr-Buffers)
112112
- 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)
114114

115115
Advantages of github.com/coder/websocket:
116116

@@ -128,9 +128,9 @@ Advantages of github.com/coder/websocket:
128128
- Gorilla requires registering a pong callback before sending a Ping
129129
- Can target Wasm ([gorilla/websocket#432](https://github.com/gorilla/websocket/issues/432))
130130
- 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
132132
- 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)
134134
- Full [permessage-deflate](https://tools.ietf.org/html/rfc7692) compression extension support
135135
- Gorilla only supports no context takeover mode
136136
- [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))

accept.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (_ *Con
149149
}
150150

151151
w.WriteHeader(http.StatusSwitchingProtocols)
152-
// See https://github.com/nhooyr/websocket/issues/166
152+
// See https://github.com/coder/websocket/issues/166
153153
if ginWriter, ok := w.(interface {
154154
WriteHeaderNow()
155155
}); ok {
@@ -282,7 +282,7 @@ func selectDeflate(extensions []websocketExtension, mode CompressionMode) (*comp
282282
for _, ext := range extensions {
283283
switch ext.name {
284284
// We used to implement x-webkit-deflate-frame too for Safari but Safari has bugs...
285-
// See https://github.com/nhooyr/websocket/issues/218
285+
// See https://github.com/coder/websocket/issues/218
286286
case "permessage-deflate":
287287
copts, ok := acceptDeflate(ext, mode)
288288
if ok {

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
// with an appropriate reason.
4040
//
4141
// This applies to context expirations as well unfortunately.
42-
// See https://github.com/nhooyr/websocket/issues/242#issuecomment-633182220
42+
// See https://github.com/coder/websocket/issues/242#issuecomment-633182220
4343
type Conn struct {
4444
noCopy noCopy
4545

example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ func ExampleConn_Ping() {
162162

163163
// This example demonstrates full stack chat with an automated test.
164164
func Example_fullStackChat() {
165-
// https://github.com/nhooyr/websocket/tree/master/internal/examples/chat
165+
// https://github.com/coder/websocket/tree/master/internal/examples/chat
166166
}
167167

168168
// This example demonstrates a echo server.
169169
func Example_echo() {
170-
// https://github.com/nhooyr/websocket/tree/master/internal/examples/echo
170+
// https://github.com/coder/websocket/tree/master/internal/examples/echo
171171
}

mask_asm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func mask(b []byte, key uint32) uint32 {
1919
// For example, the arm64 implementation doesn't align memory like the amd64.
2020
// Or the amd64 implementation could use AVX512 instead of just AVX2.
2121
// The AVX2 code I had to disable anyway as it wasn't performing as expected.
22-
// See https://github.com/nhooyr/websocket/pull/326#issuecomment-1771138049
22+
// See https://github.com/coder/websocket/pull/326#issuecomment-1771138049
2323
//
2424
//go:noescape
2525
//lint:ignore U1000 disabled till v1.9.0

netconn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// It's for tunneling arbitrary protocols over WebSockets.
1616
// Few users of the library will need this but it's tricky to implement
1717
// correctly and so provided in the library.
18-
// See https://github.com/nhooyr/websocket/issues/100.
18+
// See https://github.com/coder/websocket/issues/100.
1919
//
2020
// Every Write to the net.Conn will correspond to a message write of
2121
// the given type on *websocket.Conn.

read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
//
3131
// If you need a separate timeout on the Reader call and the Read itself,
3232
// use time.AfterFunc to cancel the context passed in.
33-
// See https://github.com/nhooyr/websocket/issues/87#issue-451703332
33+
// See https://github.com/coder/websocket/issues/87#issue-451703332
3434
// Most users should not need this.
3535
func (c *Conn) Reader(ctx context.Context) (MessageType, io.Reader, error) {
3636
return c.reader(ctx)

0 commit comments

Comments
 (0)