uniapp-signalr
TypeScript icon, indicating that this package has built-in type declarations

7.0.12 • Public • Published

JavaScript and TypeScript clients for SignalR for ASP.NET Core and Azure SignalR Service.

Support Uniapp

Installation

npm install uniapp-signalr
# or
yarn add uniapp-signalr

Usage

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

For documentation on using this client with Azure SignalR Service and Azure Functions, see the SignalR Service serverless developer guide.

Example (Uniapp)

import * as signalR from "uniapp-signalr";

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

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

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

Readme

Keywords

Package Sidebar

Install

npm i uniapp-signalr

Weekly Downloads

1

Version

7.0.12

License

MIT

Unpacked Size

4.13 MB

Total Files

234

Last publish

Collaborators

  • jimifish