0

Azure アカウントで SignalR リソースを構成し、C# で記述された Azure 関数で以下のスニペットを使用して、SignalR ハブにメッセージを送信しています。

await signalRMessages.AddAsync(new SignalRMessage()
            {
                Target = "notify",
                Arguments = new object[] { requestBody }
            });

ただし、以下のエラーが発生し続けます。

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

また、ネゴシエート関数の Azure 関数 URL が期待どおりに以下の情報を返すことも確認しました。

{"エンドポイント":" https://xxxxxxx.service.signalr.net:5001/client/?hub=broadcast ","accessKey":"yyyyyyy"}

接続エラーが発生するのはなぜですか? また、構成で何を変更できますか?

4

1 に答える 1