mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-04-08 03:48:02 +02:00
store websocket object under WS_KEY at the connection context.
This commit is contained in:
parent
c0069f1e1b
commit
d608c67791
@ -49,6 +49,8 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
|
||||
WaitingForAuth: make(chan struct{}),
|
||||
}
|
||||
|
||||
ctx = context.WithValue(ctx, WS_KEY, ws)
|
||||
|
||||
// reader
|
||||
go func() {
|
||||
defer func() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user