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.hoon3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/lib/websockets.hoon b/app/lib/websockets.hoon
index 9faea96..4d1f952 100644
--- a/app/lib/websockets.hoon
+++ b/app/lib/websockets.hoon
@@ -10,5 +10,8 @@
++ accept-handshake |= wid=@
=/ response [%accept ~]
(give-ws-payload wid response)
+ ++ refuse-handshake |= wid=@
+ =/ response [%reject ~]
+ (give-ws-payload wid response)
--