mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 14:38:43 +00:00
RPC Test
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
using Esiur.Tests.RPC.SignalRServer;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddSignalR(o =>
|
||||
{
|
||||
o.EnableDetailedErrors = true;
|
||||
o.MaximumReceiveMessageSize = 10 * 1024 * 1024; // 10 MB
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.MapHub<EchoHub>("/hub/echo");
|
||||
app.Urls.Add("http://0.0.0.0:5200");
|
||||
app.Run();
|
||||
Reference in New Issue
Block a user