signalr-client-react

0.2.1 • Public • Published

Fork of @asnpet/signalr-client with a few tweaks for usage in React apps

Installation

npm install signalr-client-react

Usage

 
import { HubConnection } from 'signalr-client-react';
 
let connection = new HubConnection('/chat');
 
connection.on('newMessage', data => {
    console.log(data);
});
 
connection.start();

Readme

Keywords

none

Package Sidebar

Install

npm i signalr-client-react

Weekly Downloads

270

Version

0.2.1

License

MIT

Unpacked Size

1.19 MB

Total Files

48

Last publish

Collaborators

  • matswainson