# Installation

## Installation

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

```bash
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`:

```typescript
import { NgModule } from '@angular/core';
import { NgxfModule } from '@ngxf/platform';
import { NgxfSocketIOModule } from '@ngxf/socket.io';
​
@NgModule({
  imports: [
    NgxfModule,
    NgxfSocketIOModule
  ]
})
export class ComponentModule {}
```
