summaryrefslogtreecommitdiff
path: root/app/lib/websockets.hoon
diff options
context:
space:
mode:
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)