Discovery Nats Related

This commit is contained in:
mr
2026-01-28 17:23:55 +01:00
parent a9e737fb4f
commit e650ad479d
15 changed files with 221 additions and 1197 deletions

View File

@@ -66,7 +66,7 @@ func Websocket(ctx cx.Context, user string, r *context.Response, w *http.Request
websocket.Handler(func(ws *websocket.Conn) {
defer ws.Close()
for {
if msg, ok := <-infrastructure.Singleton.SearchStream[user]; !ok || websocket.Message.Send(ws, msg) != nil {
if msg, ok := <-infrastructure.SearchStream[user]; !ok || websocket.Message.Send(ws, msg) != nil {
return
}
}