Hello
I'm having problems translating this into a working Delphi solution, I tried using TsgcWebSocketClient / TsgcWSAPI_SignalR and TsgcWebSocketClient / TsgcWSAPI_SignalRCore but all i get is a "HTTP/1.1 404 Not Found" while other .Net apps can connect. I'm using the SignalR demo and i'm not sure where to search solution.
private void button1_Click(object sender, EventArgs e)
{
_hubConnection = new HubConnectionBuilder()
.WithUrl("http://localhost:8080", options =>
{
options.SkipNegotiation = true;
options.Transports = Microsoft.AspNetCore.Http.Connections.HttpTransportType.WebSockets;
})
.WithAutomaticReconnect(new RetryPolicy(3))
.Build();
_hubConnection.On("Event1", OnEvent1);
_hubConnection.StartAsync(_cancellationTokenSource.Token);
}
Thanks for any help!
Regards,
Marius
I'm having problems translating this into a working Delphi solution, I tried using TsgcWebSocketClient / TsgcWSAPI_SignalR and TsgcWebSocketClient / TsgcWSAPI_SignalRCore but all i get is a "HTTP/1.1 404 Not Found" while other .Net apps can connect. I'm using the SignalR demo and i'm not sure where to search solution.
private void button1_Click(object sender, EventArgs e)
{
_hubConnection = new HubConnectionBuilder()
.WithUrl("http://localhost:8080", options =>
{
options.SkipNegotiation = true;
options.Transports = Microsoft.AspNetCore.Http.Connections.HttpTransportType.WebSockets;
})
.WithAutomaticReconnect(new RetryPolicy(3))
.Build();
_hubConnection.On("Event1", OnEvent1);
_hubConnection.StartAsync(_cancellationTokenSource.Token);
}
Thanks for any help!
Regards,
Marius