@aspnet/signalr
ASP.NET Core SignalR Client
Last updated a year ago by npmaspnet .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @aspnet/signalr 
SYNC missed versions from official npm registry.

JavaScript and TypeScript clients for SignalR for ASP.NET Core

Installation

npm install @aspnet/signalr

Usage

See the SignalR Documentation at docs.microsoft.com for documentation on the latest release. API Reference Documentation is also available on docs.microsoft.com.

Browser

To use the client in a browser, copy *.js files from the dist/browser folder to your script folder include on your page using the <script> tag.

Node.js

To use the client in a NodeJS application, install the package to your node_modules folder and use require('@aspnet/signalr') to load the module. The object returned by require('@aspnet/signalr') has the same members as the global signalR object (when used in a browser).

Example (Browser)

let connection = new signalR.HubConnectionBuilder()
    .withUrl("/chat")
    .build();

connection.on("send", data => {
    console.log(data);
});

connection.start()
    .then(() => connection.invoke("send", "Hello"));

Example (NodeJS)

const signalR = require("@aspnet/signalr");

let connection = new signalR.HubConnectionBuilder()
    .withUrl("/chat")
    .build();

connection.on("send", data => {
    console.log(data);
});

connection.start()
    .then(() => connection.invoke("send", "Hello"));

Current Tags

  • 1.1.4                                ...           latest (a year ago)
  • 3.0.0-preview6.19307.2                                ...           next (a year ago)

21 Versions

  • 3.0.0-preview6.19307.2                                ...           a year ago
  • 3.0.0-preview5-19227-01                                ...           a year ago
  • 3.0.0-preview4-19216-03                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 3.0.0-preview3-19153-02                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 3.0.0-preview-19075-0444                                ...           a year ago
  • 3.0.0-preview-18579-0056                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.1.0-preview3-35497                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.1.0-preview2-35157                                ...           2 years ago
  • 1.1.0-preview1-35029                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-rc1-update1                                ...           2 years ago
  • 1.0.0-rc1-final                                ...           2 years ago
  • 1.0.0-preview2-final                                ...           2 years ago
  • 1.0.0-preview1-update1                                ...           2 years ago
  • 1.0.0-preview1-final                                ...           2 years ago
Downloads
Today 51
This Week 336
This Month 336
Last Day 121
Last Week 466
Last Month 1,797
Dependencies (3)
Dev Dependencies (4)
Dependents (332)

Copyright 2014 - 2017 © taobao.org |