Installing the SignalR client

Let's open our React frontend project in Visual Studio Code and install the SignalR client. Enter the following command in the Terminal:

> npm install @aspnet/signalr

Check the version of the @aspnet/signalr package in package.json. If it is before version 3, then run the following command in the Terminal to get a more up-to-date version of this package:

> npm install @aspnet/signalr@next

Note that TypeScript types are included in this package, so there is no separate installation process for these. After a few seconds, the SignalR client will be installed in our project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.3.255