Having problem with SocketException in WebGL build

image
So I have problem with this bug. Sometimes it’s connected to nakama sometimes not. I’ve handled them with try catch like this

public void SendChat(IChannel channel, string message)
{
    UnityDispatcher.Dispatch(async () =>
    {
        async UniTask SafeSendChat()
        {
            try
            {
                await _socket.WriteChatMessageAsync(channel, message);
            }
            catch (Exception e)
            {
                Debug.LogWarning(e);
                await UniTask.Delay(2000);
                SendChat(channel, message);
            }
        }

        await AuthenticateUser();
        await SafeSendChat();
    });
}

but the error still occur sometimes. Can you point me to where the function exactly to handle based on that pict?

Please share how you’re setting up the socket connection.