Private
Public Access
1
0

Updates: need to have one channel per observer

This commit is contained in:
2023-08-24 00:30:57 -07:00
parent 7895a3a2e0
commit a0e8e049f0
2 changed files with 30 additions and 19 deletions

View File

@@ -289,6 +289,7 @@ func (m *MockHTTPServer) handleMarkConversation(w http.ResponseWriter, r *http.R
func (m *MockHTTPServer) handleUpdatesWebsocket(c *websocket.Conn) {
// Fetch updates continuously
defer c.Close()
for {
// Fetch updates (blocking)
updates := m.Server.FetchUpdatesBlocking(-1)