From b15eb9c9066f8e2e85686f2323f55e24f838f35d Mon Sep 17 00:00:00 2001 From: tiye Date: Sat, 14 Nov 2026 09:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=20Chrome=20=E6=96=AD=E8=BF=9E?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=A3=B0=E6=98=8E=20Port=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calcit.cirru | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/calcit.cirru b/calcit.cirru index da9b9ad..06e9968 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -2132,7 +2132,7 @@ 'ChromeDisconnectEventHost $ %{} 'CodeEntry (:doc |) :code $ quote $ deftrait ChromeDisconnectEventHost .add-listener! $ Fn app.main/ChromeDisconnectEventHost - Fn Dynamic $ -> Unit + Fn app.main/ChromePortHost $ -> Unit -> Unit :examples $ [] :ffi $ {} (:backend :js) (:kind :external-object) (:target :browser) @@ -2170,7 +2170,11 @@ when (js-present? on-disconnect) let listener $ assert-type on-disconnect ChromeDisconnectEventHost - listener .add-listener! $ fn (event) (println |Worker-disconnected-retrying) (js/setTimeout connect-to-worker! 500) &unit + listener .add-listener! $ fn (_port) + hint-fn $ Fn ChromePortHost $ -> Unit + println |Worker-disconnected-retrying + js/setTimeout connect-to-worker! 500 + , &unit , &unit :examples $ [] :schema $ quote $ Fn (-> Unit) (:features :js-ffi)