websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Minimal and idiomatic WebSocket library for Go

Results 111 websocket issues
Sort by recently updated
recently updated
newest added

Was reported to me by @TheDiscordian on reddit. The problem is this line: https://github.com/nhooyr/websocket/blob/c9f314abd11b749d43bb61fd214171f8bb4e4173/ws_js.go#L280 The close call will wait for the connection to open thus voiding the context timeout. @TheDiscordian...

bug
needs info
wasm

Would it be possible to add a field to `AcceptOptions` and to `DialOptions` that sets the read limit on the created connection? It's not as convenient to have to call...

enhancement

In light of #231 and #205, I'm going to do a complete review to ensure there are no more such bugs from my rewrite in #163.

enhancement

See points in #200

enhancement

On some 32-bit architectures, 64-bit atomic operations panic when the value is not aligned properly. In this package, this causes netConn operations to panic when compiling with `GOARCH=386`, since netConn...

nhooyr.io/websocket v1.8.10 When CloseNow() is called by 2 goroutines, there is a race condition: ``` panic: sync: WaitGroup is reused before previous Wait has returned goroutine 105321 [running]: sync.(*WaitGroup).Wait(0xe33400?) /src/sync/waitgroup.go:118...

When I run my go program with race detector enabled, following logs were observed. ``` WARNING: DATA RACE local-setup-websocket-api-1 | Write at 0x00c0002e31b0 by goroutine 129: local-setup-websocket-api-1 | nhooyr.io/websocket.(*Conn).setCloseErrLocked() local-setup-websocket-api-1...

We all had to deal with weird external websocket configs, well the one I have the pleasure to deal with this time requires me to send a PONG frame every...

enhancement

the added test fails before this with ------------ i originally found this in D2 when i added tests for watching and --race started failing but the code seems to be...

bug

Hi I am experiencing a pretty weird behavior and I am unsure if this is intentional or not. We have had problems with bad client performance when reading data from...

enhancement