websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Minimal and idiomatic WebSocket library for Go

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

This modernizes the imported packages a lot by updating to the latest releases. It should bring many improvements and a fix for https://github.com/nhooyr/websocket/issues/318. The protobuf package should probably be updated...

Tried the below: ```go package main import ( "context" "fmt" "log" "net/http" "time" "nhooyr.io/websocket" "nhooyr.io/websocket/wsjson" ) func main() { http.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Println("call done") setupCORS(&w, r) c,...

See https://github.com/nhooyr/websocket/issues/265#issuecomment-734499702

enhancement

Dependabot alerts, that github.com/gin-gonic/gin < 1.7.0 has critical vulnerability, so I bumped version to latest atm.

Hi, I have a weird problem using this package with Binance WebSocket API. Just after I got stream subscription confirmation, connection is closed (code 1008). At the beginning I was...

The lack of panics and error catching on ListenAndServe caught me out. This fixes it for future noobs.

fix bug : Dial got error "failed to WebSocket dial: response body is not a io.ReadWriteCloser: *http.cancelTimerBody" when set http.DefaultClient.Timeout #341

when I set http.DefaultClient.Timeout = time.Second * 10, websocket.Dial will get an error "failed to WebSocket dial: response body is not a io.ReadWriteCloser: *http.cancelTimerBody" verson: nhooyr.io/websocket v1.8.7 this is because...

Pipe function here: https://github.com/nhooyr/websocket/blob/master/internal/test/wstest/pipe.go#L17 is inside the internal package which means it can't be imported by other projects. However it should be external so that it can be imported by...

enhancement