Skip to content

Commit 144117a

Browse files
committed
Expose disconnect method in createRoot to disconnect from InSim
1 parent 3739702 commit 144117a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lib/renderer/inSim/createRoot.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,9 @@ export function createRoot({
120120
);
121121
},
122122
inSim,
123+
disconnect: () => {
124+
inSim.removeAllListeners();
125+
inSim.disconnect();
126+
},
123127
};
124128
}

0 commit comments

Comments
 (0)