diff --git a/Samples/AspRpc/Program.cs b/Samples/AspRpc/Program.cs index fc671e8..04c9c3d 100644 --- a/Samples/AspRpc/Program.cs +++ b/Samples/AspRpc/Program.cs @@ -41,8 +41,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) //initialize web-sockets and bind the service reportingService = new ReportingService(); - app.UseWebSockets(); - app.MapWebSocketRPC("/reportingService", (hc, c) => c.Bind(reportingService)); + app.UseWebSocketRPC(new WebSocketRPCOptions("/reportingService", (hc, c) => c.Bind(reportingService))); } }