Creating a client

As mentioned in our Project Layout, the client will consist of JavaScript functions for sending messages to and receiving message from the server, and HTML elements for display.

  1. In your project, add a new folder under wwwroot, called scripts:

Remember that the node_modules directory that was created for us by our npm command earlier?

  1. Navigate to the following path within the node_modules directory:


Take a look at the following screenshot:

  1. Copy the signalr-client-1.0.0-alpha2-final.min.js ...

Get C# 7 and .NET Core 2.0 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.