Skip to content

Instantly share code, notes, and snippets.

@Ibro
Created November 14, 2017 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibro/df6b740c142852d5726ba89601d9e0ea to your computer and use it in GitHub Desktop.
Save Ibro/df6b740c142852d5726ba89601d9e0ea to your computer and use it in GitHub Desktop.
ASP.NET Core SignalR chat with Angular 5 - https://codingblast.com/asp-net-core-signalr-chat-angular
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseCors("CorsPolicy");
app.UseSignalR(routes =>
{
routes.MapHub<ChatHub>("chat");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment