Terminate a websocket subscription when the websocket closes

This commit is contained in:
Tony Garnock-Jones 2016-11-21 17:46:56 +13:00
parent 01d8ba9456
commit 79e8d87e5f
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@
(assert (web-response-websocket id))
(stop-when (websocket-connection-closed id))
(on (message ($ n (notification topic
$canonical-hub
$canonical-topic