From d24d45f4cb41c07acd38e8d4b332da0d76a702cd Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 30 Dec 2021 16:28:08 +0100 Subject: [PATCH] :sparkles: Terminate connection if incoming message cant be parsed. --- backend/src/app/util/websocket.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/util/websocket.clj b/backend/src/app/util/websocket.clj index b804b7fac..ecf1fbe58 100644 --- a/backend/src/app/util/websocket.clj +++ b/backend/src/app/util/websocket.clj @@ -115,7 +115,8 @@ (a/offer! input-ch message)) (catch Throwable e (l/warn :hint "error on decoding incoming message from websocket" - :cause e)))) + :cause e) + (on-terminate)))) on-pong (fn [_ buffer]