diff --git a/lib/identity-search/identity-search-context.js b/lib/identity-search/identity-search-context.js --- a/lib/identity-search/identity-search-context.js +++ b/lib/identity-search/identity-search-context.js @@ -203,7 +203,7 @@ const heartbeat: Heartbeat = { type: identitySearchMessageToServerTypes.HEARTBEAT, }; - socket.current?.send(JSON.stringify(heartbeat)); + identitySearchSocket.send(JSON.stringify(heartbeat)); } };