@adaskothebeast/ngxs-signalr-plugin
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

NGXS SignalR Plugin

Bind server SignalR events to Ngxs store actions.

This library is build based on NGXS/WebSocket.

Instalation

npm install @adaskothebeast/ngxs-signalr-plugin --save

# or if you are using yarn
yarn add @adaskothebeast/ngxs-signalr-plugin --save

Configuration

If backend hub application is written in .net core.

import { NgxsModule } from '@ngxs/store';
import { NgxsSignalRPluginModule } from '@adaskothebeast/ngxs-signal-plugin';

@NgModule({
  imports: [
    NgxsModule.forRoot([]),
    NgxsSignalRPluginModule.forRoot({
      url: 'http://localhost:8080/hub'
    })
  ]
})
export class AppModule {}

Compatibility

  • Angular 14.1.x
  • SignalR 6.0.x

Readme

Keywords

Package Sidebar

Install

npm i @adaskothebeast/ngxs-signalr-plugin

Weekly Downloads

22

Version

4.0.0

License

MIT

Unpacked Size

104 kB

Total Files

42

Last publish

Collaborators

  • adasko