From ad90dd2360dcf06ef39994f113ab865904746765 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Tue, 27 Feb 2024 15:55:15 -0500 Subject: [PATCH] update comment --- src/json-rpc-handlers/dwn/process-message.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/json-rpc-handlers/dwn/process-message.ts b/src/json-rpc-handlers/dwn/process-message.ts index 3a12d1c..bed6db3 100644 --- a/src/json-rpc-handlers/dwn/process-message.ts +++ b/src/json-rpc-handlers/dwn/process-message.ts @@ -64,6 +64,7 @@ export const handleDwnProcessMessage: JsonRpcHandler = async ( // if this is a subscription request, we first check if the connection has a subscription with this Id // we do this ahead of time to prevent opening a subscription on the dwn only to close it after attempting to add it to the subscription manager + // otherwise the subscription manager would throw an error that the Id is already in use and we would close the open subscription on the DWN. if (subscriptionRequest !== undefined && socketConnection?.hasSubscription(subscriptionRequest.id)) { const jsonRpcResponse = createJsonRpcErrorResponse( requestId,