Installation

Installation

To get started, install the package from npm. The latest version (6.x) supports Angular/RX 6.

npm i @ngxf/platform @ngxf/socket.io socket.io-client @types/socket.io-client --save

# or if you are using yarn
yarn add @ngxf/platform @ngxf/socket.io socket.io-client @types/socket.io-client

then in COMPONENT.module.ts, import the NgxfModule:

import { NgModule } from '@angular/core';
import { NgxfModule } from '@ngxf/platform';
import { NgxfSocketIOModule } from '@ngxf/socket.io';

@NgModule({
  imports: [
    NgxfModule,
    NgxfSocketIOModule
  ]
})
export class ComponentModule {}

Last updated