Skip to content

Commit

Permalink
Modify comment to reflect MultiSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestKz committed Jan 15, 2024
1 parent 903f0dd commit 3e24a7b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ handleClient conn core = do
handleSubscriptionTimeout :: SubscriptionTimeout -> IO ()
handleSubscriptionTimeout _ = pure ()

-- Put the client in the subscription tree and keep the connection open.
-- Remove it when the connection is closed.
-- Run the threads to propagate updates to client, and to receive and handle payloads
-- Upon threads dying, unsubscribe client from all subscriptions, then exit the procedure
-- to let `wai-websockets` close the websocket stream (since we are in a bracket)
Exception.finally
(onConnect client >> manageConnection)
(onDisconnect client)
Expand Down

0 comments on commit 3e24a7b

Please sign in to comment.