Setting up the JavaScript client
Learn how to add the SignalR library for JavaScript clients.
Overview
The first (and simplest) SignalR client we'll set up is a JavaScript client. Even though we can use the SignalR client JavaScript library from a standalone application, we'll use it from our application’s pages. The client will run in the browser.
But suppose we later want to set up a JavaScript SignalR client in a different type of application (including a standalone JavaScript app). In that case, the setup process will be very similar. The code will be similar too. After all, it's the same client library.
Get hands-on with 1200+ tech skills courses.