8.0.0 • Published 5 months ago

@microsoft/signalr v8.0.0

Weekly downloads
16
License
MIT
Repository
github
Last release
5 months ago

JavaScript and TypeScript clients for SignalR for ASP.NET Core

Installation

npm install @microsoft/signalr

or

yarn add @microsoft/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.

WebWorker

To use the client in a webworker, copy *.js files from the dist/webworker folder to your script folder include on your webworker using the importScripts function. Note that webworker SignalR hub connection supports only absolute path to a SignalR hub.

Node.js

To use the client in a NodeJS application, install the package to your node_modules folder and use require('@microsoft/signalr') to load the module. The object returned by require('@microsoft/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 (WebWorker)

importScripts('signalr.js');

let connection = new signalR.HubConnectionBuilder()
    .withUrl("https://example.com/signalr/chat")
    .build();

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

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

Example (NodeJS)

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

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

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

connection.start()
    .then(() => connection.invoke("send", "Hello"));
@stredadev/webuikit@dfds-devex/minions-plugins-kafka@globalsoftba/bede-starterkit@omnia/fxngx-aton-basereact-viffcommspanelpix-apidata-testcommspanel5keysoft_client_core@iracing-tools/overlay-sdk@cexiolabs/cexiopay.gate.widget-client-mocksr-reportsgtav-live-map-client@ombori/grid-session-managergtav-live-map-ws-clientlog8000v3@navtrack/navtrack-app-sharedcointervulavva.exalushome-devlavva.exalushome.extalife-devhss_webchatclipper-signalrclipperpackclippersignal@gamehook-io/mappersgoblin-passport@everything-registry/sub-chunk-602@fellow-worker/bbcs-web-chatshesha-reactjs-starterboxfusion-test-moduleaudience-webxrplayer-sdkzm-zzz@dative-gpi/foundation-extension-servicesweb-ui-depsweb-post-messagewebapp-joostlywatchtower-commonzr-npmzecn-mc-webuser@getvia/sdkyong-tools-tstsakmate.noderedcomponentsxframelibxendbridgechat-sdkxy-health-measurementxy-health-ssssssmeasurementupdated-redux-signalrviff-componentsviewdu-ngx@gostarehnegar/gnclient@gostarehnegar/tomcatfno-sdkfolke-service-helpers@gamehook-io/client@sasyesp03/elsa-workflows-studio-ulixesamin-notifsx-licensing-managersyc-cmssyc-cms-dept2syc-cms-inner-department2syc-cms-temp1tiaoxiang-sidertiaoxiang-sider-devtime-negartps_base_componentstps_web_componentssanitas-chatbotsaar-br-clientshesha-reportsshared-mobilesoleran-report-tablespark.npm.coreshuhong-libsignalarrrsignalr-componentsignalr-decoratorssignalr-rxsignalr-utilitiessignalr-vuesignalr-statetailformstemplate-cot-vts3taxcom-btr-tax-zfm-federal-tax-presumedtect-com-plussydney-aiterramarkets.jssportotekastablex-sdkstreda_web_componentssimulator_web_uislz-www2-componentssmart-salon-pos-systemsmart-signalrtest-recordingtaskmate.noderedcomponents2@medrunner/api-clientsrts-netlayervia-sdk-devvalourise
7.0.9

10 months ago

6.0.25

5 months ago

6.0.23

7 months ago

6.0.22

8 months ago

6.0.21

9 months ago

6.0.20

10 months ago

7.0.12

7 months ago

7.0.10

9 months ago

7.0.11

8 months ago

7.0.14

5 months ago

8.0.0-rc.2.23480.2

7 months ago

8.0.0

5 months ago

7.0.7

11 months ago

6.0.18

11 months ago

7.0.5

1 year ago

7.0.4

1 year ago

6.0.16

1 year ago

6.0.15

1 year ago

7.0.3

1 year ago

6.0.14

1 year ago

3.1.31

1 year ago

7.0.0

1 year ago

7.0.2

1 year ago

6.0.13

1 year ago

6.0.11

1 year ago

3.1.30

2 years ago

6.0.10

2 years ago

3.1.29

2 years ago

6.0.9

2 years ago

3.1.27

2 years ago

3.1.26

2 years ago

3.1.28

2 years ago

6.0.7

2 years ago

6.0.6

2 years ago

6.0.8

2 years ago

3.1.25

2 years ago

5.0.17

2 years ago

6.0.5

2 years ago

3.1.24

2 years ago

5.0.16

2 years ago

6.0.4

2 years ago

3.1.23

2 years ago

5.0.15

2 years ago

6.0.3

2 years ago

5.0.14

2 years ago

6.0.2

2 years ago

3.1.22

2 years ago

3.1.21

2 years ago

5.0.12

2 years ago

5.0.13

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

3.1.20

3 years ago

5.0.11

3 years ago

3.1.19

3 years ago

5.0.10

3 years ago

3.1.18

3 years ago

5.0.9

3 years ago

3.1.17

3 years ago

5.0.8

3 years ago

3.1.16

3 years ago

5.0.7

3 years ago

5.0.6

3 years ago

3.1.15

3 years ago

3.1.14

3 years ago

5.0.5

3 years ago

5.0.4

3 years ago

3.1.13

3 years ago

5.0.3

3 years ago

3.1.12

3 years ago

5.0.2

3 years ago

3.1.11

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

3.1.10

3 years ago

3.1.9

4 years ago

3.1.8

4 years ago

3.1.7

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.0.3

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

5 years ago

0.0.0

5 years ago