![]() ![]() ![]() then(() => console.log("Connection started")) Public void Configure(IApplicationBuilder app)Ĭonst signalR = connection = new signalR.HubConnectionBuilder() Public void ConfigureServices(IServiceCollection services) actually had to use skipNegotiations: true since I get 404.doesn’t matter if it’s executed inside docker container or at localhost.app.UseWebSockets() manually - no change.endpoints.MapHub(".", o => o.Transports = HttpTransportType.WebSockets) - no change.CORS (well not in a nodejs console app, but in browser).This is the list what I thought of that might cause the issue (some things may be missing): It might be the thing that my server does not support WebSockets transport type, but since we are working on a bash systems I haven’t found solution yet. That thing is that if I want to connect to the hub with external application (node/js in browser) I get this error:Įrror: Failed to start the connection: Error: There was an error with the transport. Since that, we are using LongPooling for now and it is working okayish. Hey, I got a problem with WebSockets transport type. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |