79225877

Date: 2024-11-26 08:32:22
Score: 2.5
Natty:
Report link

Sometimes in new versions signalrwe need to work on old code and old versions and this is very troublesome. The link below with sample code can be a good guide for this type of problem.

var connection = new signalR.HubConnectionBuilder()
            .withUrl(ArianCore.GlobInfo.ApiUrl + "apiHub?", {
                 headers: { "token": getToketAuth() },
                transport: signalR.HttpTransportType.LongPolling
            }
            )
            .build();

https://learn.microsoft.com/en-us/aspnet/core/signalr/configuration?view=aspnetcore-8.0&tabs=javascript#configure-additional-options

Reasons:
  • Blacklisted phrase (1): The link below
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: syeed masoud tayefi