Home > Net >  WebAPI Core SignalR, consult
WebAPI Core SignalR, consult

Time:09-17

Your wild bosses, domestic bosses, women's wear good bosses,
I want to ask the front connection to reference/signalr/hubs is generated automatically, but I'm kind of a repository in the signalr package, but what also didn't come out more in the Debug, my browser also no page enter the address, tip 404
How do I make sure I this/signalr hubs has been generated automatically?
Behind a problem may cross-examine ha, seek answers,

CodePudding user response:

Configuration in the Startup - Configure static file middleware app. UseStaticFiles ();

CodePudding user response:

You didn't introduce @ Microsoft/signalr @ latest

CodePudding user response:

reference pattern name title on the second floor response:
you didn't introduce @ Microsoft/signalr @ latest

Lead, but has been cross domain


CodePudding user response:

1 in the study

CodePudding user response:


 
Public async Task SystemSendALL ()
{
String UserId="001";
String message="002";
Await Clients. All. SendAsync (" ReceiveMessage ", UserId, message);
}

 
Var connection=new signalR. HubConnectionBuilder () withUrl (" http://localhost:5000/Helper "). The build ();
Connection. The start ();
Connection. On (" ReceiveMessage ", function (UserId, message) {
The console. The log (" 111111111111111111 ");

});


Hint I connect is empty, why?