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

How to get LocalAddr or RemoteAddr?now returns “websocket/unknown-addr ”

goos: windows goarch: amd64 pkg: nhooyr.io/websocket cpu: Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz Benchmark_mask/2/basic-8 425339004 2.795 ns/op 715.66 MB/s Benchmark_mask/2/nhooyr-8 379937766 3.186 ns/op 627.78 MB/s Benchmark_mask/2/gorilla-8 392164167 3.071 ns/op 651.24...

I do not want to limit the size of possible messages. Currently, the only way to do this is to set the read limit to a very high number. Would...

Hi, first of thank for this great repo. But when I try: `go run main.go ` it states: `undefined: newChatServer`

Hi! Could you please update the https://github.com/gin-gonic/gin. Github Dependabot send alerts to projects uses your nhooyr/websocket project because you use the https://github.com/gin-gonic/gin v1.6.3, but they need Patched version: 1.7.0. See...

The github.com/gin-gonic/gin dependency has a http response splitting vulnerability in versions less than 1.7.0: https://github.com/gin-gonic/gin/pull/2632 Upgrading the dependency to 1.7.0 or higher will fix this vulnerability (current version is 1.7.1)

enhancement

Minimal reproduction: ```go package websocket_test import ( "context" "testing" "time" "github.com/stretchr/testify/assert" "nhooyr.io/websocket" "nhooyr.io/websocket/internal/test/wstest" ) func TestWeirdTimeout(t *testing.T) { sConn, cConn := wstest.Pipe(nil, nil) sConn.CloseRead(context.Background()) cConn.CloseRead(context.Background()) go func() { for range...

needs investigation

In HTML5 websockt or socket.io, you can consume messages just with the following lines of code: ``` var io = require('socket.io-client'); var socket = io('http://localhost:6001'); socket.on('connect', function () { console.log('connected');...

docs