UNPKG

redux-ws-middleware

Version:

This package makes web socket management much easier with redux

10 lines (9 loc) 417 B
import { SocketDispatch } from './ReduxService.types'; export declare class ReduxService { private readonly actionTypes; private readonly dispatch; constructor(actionTypes: [string, string], dispatch: SocketDispatch); getDispatch: () => SocketDispatch<import("./ReduxService.types").AnyAction<any>>; dispatchConnected: () => void; dispatchDisconnected: <P>(payload?: P | undefined) => void; }