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:

\@aspnet\signalr-client\dist\browser

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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.