
I try to implement a component witch use SignlR. I look this : https://powerapps.microsoft.com/en-us/blog/notification-control-using-powerapps-component-framework-...
I would used a custom SignalR server, not Azure SignalR. So I create a simple ASP.Net Core Web Site and put in Startup.cs :
services.AddSignalR(hubOptions =>
{
hubOptions.EnableDetailedErrors = true;
});
app.UseCors(builder =>
{
builder
.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader();
});
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<ch.ChatHub>("/chatHub");
});
The n I publish this Site on a Web server.
When I try to connect to my Hub, on my computer (with "npm start watch"), it works. But When I try my component in Powerapps, it doesn't work. I have this error :
Error: Server returned handshake error: Handshake was canceled.
at HubConnection._processHandshakeResponse (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./node_modules/@microsoft/signalr/dist/esm/HubConnection.js?:639:21)
at HubConnection._processIncomingData (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./node_modules/@microsoft/signalr/dist/esm/HubConnection.js?:541:19)
at LongPollingTransport.HubConnection.connection.onreceive (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./node_modules/@microsoft/signalr/dist/esm/HubConnection.js?:72:46)
at LongPollingTransport._poll (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./node_modules/@microsoft/signalr/dist/esm/LongPollingTransport.js?:165:22)
I need help !!!!
I try to use a Azure SignalR in place of my custom SignalR server. But I have the same problem. It looks coming from Websocket. In Chrome or Edge devtools / Networks tabs, locally or in powerapps application, I have a query with response code: 101. locally, I have data’s in messages tabs, but in power apps, nothings. Is there something to do for using Websocket in Powerapps ?