summaryrefslogtreecommitdiff
path: root/app/lib/websockets.hoon
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-11-18 09:43:16 +0700
committerpolwex <polwex@sortug.com>2025-11-18 09:43:16 +0700
commita465c73178dc621578d10312f263355f0f2d5309 (patch)
tree08a0b655835d4c08d45e8e3e8f52601f7911044b /app/lib/websockets.hoon
parent7706acaafa89691dba33c216e6287a8405c4c302 (diff)
fixes to profile handling and rendering
Diffstat (limited to 'app/lib/websockets.hoon')
-rw-r--r--app/lib/websockets.hoon5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/websockets.hoon b/app/lib/websockets.hoon
index ae48775..a87f2a1 100644
--- a/app/lib/websockets.hoon
+++ b/app/lib/websockets.hoon
@@ -4,6 +4,11 @@
=/ =task:iris [%websocket-connect dap.bowl endpoint]
[%pass /ws-connect %arvo %i task]
+ ++ cancel-connect |= wid=@ud
+ ^- card:agent:gall
+ =/ =task:iris [%cancel-websocket wid]
+ [%pass /ws-connect %arvo %i task]
+
++ disconnect |= wid=@ud
^- card:agent:gall
=/ =path /websocket-client/(scot %ud wid)