@atton16/ngx-socket-io
Version:
Socket.IO module for Angular
10 lines (9 loc) • 477 B
TypeScript
import { ModuleWithProviders, InjectionToken } from '@angular/core';
import { SocketIoConfig } from './config/socket-io.config';
import { WrappedSocket } from './socket-io.service';
/** Socket factory */
export declare function SocketFactory(config: SocketIoConfig): WrappedSocket;
export declare const SOCKET_CONFIG_TOKEN: InjectionToken<SocketIoConfig>;
export declare class SocketIoModule {
static forRoot(config: SocketIoConfig): ModuleWithProviders<SocketIoModule>;
}