Skip to content

SocketIOService

@tsed/socketio

Usage

typescript
import { SocketIOService } from "@tsed/socketio";

See /packages/third-parties/socketio/src/types/services/SocketIOService.ts.

Overview

ts
class SocketIOService {
    
    
    constructor(injector: InjectorService, io: SocketIO.Server);
    getNsp(namespace?: string | RegExp): {
        nsp: SocketIO.Namespace;
        instances: any[];
    };
    addSocketProvider(provider: Provider<any>): void;
}

getNsp

ts
getNsp(namespace?: string | RegExp): {
     nsp: SocketIO.Namespace;
     instances: any[];
 };

addSocketProvider

ts
addSocketProvider(provider: Provider<any>): void;

Released under the MIT License.