Open szuecs opened 5 years ago
Right now we connect plain sockets and use for { io.Copy() } and copiy streams in both direction so we have 1 goroutine per upgraded connection regardless if we have a websocket or something else.
for { io.Copy() }
Interesting resources to check:
In skipper: check proxy/upgrade.go and proxy/proxy.go (makeUpgrade..())
proxy/upgrade.go
proxy/proxy.go
makeUpgrade..()
There is also https://pkg.go.dev/github.com/christopher-dG/go-obs-websocket, but I did not look into it
Right now we connect plain sockets and use
for { io.Copy() }
and copiy streams in both direction so we have 1 goroutine per upgraded connection regardless if we have a websocket or something else.Interesting resources to check:
In skipper: check
proxy/upgrade.go
andproxy/proxy.go
(makeUpgrade..()
)