import { Injectable } from '@angular/core' ; import { Actions , Effect } from '@ngrx/effects' ; import * as websocket from './websocket.actions' ; import * as table from '../table/table.actions' ; import * as fromRoot from '../app.reducers' ; import { $WebSocket } from 'angular2-websocket/angular2-websocket' ; import { Store } from '@ngrx/store' ; import { WebsocketService } from './websocket.service' ; @ Injectable ( ) export class WebsocketEffects { private ws : $WebSocket ; constructor ( private actions$ , private websocket$ , private store ) { } }