From 6adbbc6a1db5b1fc2642010d530d9c2df59526b9 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 31 May 2021 12:08:48 +0200 Subject: [PATCH] Handle accessing ws socket without auth Signed-off-by: Thomas Citharel --- lib/web/channels/graphql_socket.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/web/channels/graphql_socket.ex b/lib/web/channels/graphql_socket.ex index 5e1568572..b694416a1 100644 --- a/lib/web/channels/graphql_socket.ex +++ b/lib/web/channels/graphql_socket.ex @@ -24,5 +24,7 @@ defmodule Mobilizon.Web.GraphQLSocket do end end + def connect(_args, _socket), do: :error + def id(_socket), do: nil end