UNPKG

ng6-socket-io

Version:

Socket.IO Module for Angular 6 and RxJS6

11 lines (9 loc) 475 B
import { InjectionToken, ModuleWithProviders, NgZone } from '@angular/core'; import { WrappedSocket } from './socket-io.service'; import { SocketIoConfig } from './socketIoConfig'; /** Socket factory */ export declare function SocketFactory(config: SocketIoConfig, ngZone: NgZone): WrappedSocket; export declare const SOCKET_CONFIG_TOKEN: InjectionToken<SocketIoConfig>; export declare class SocketIoModule { static forRoot(config: SocketIoConfig): ModuleWithProviders; }