extensor
Version:
Extra funcionalities to socket.io
6 lines (5 loc) • 359 B
TypeScript
import { Server } from "socket.io";
import { Socket } from "socket.io-client";
import { AuthHandler, AuthOptions } from "../types";
export declare function server(io: Server, handler: AuthHandler, options?: AuthOptions): void;
export declare function client(socket: typeof Socket, data: any, callback?: (error?: Error) => void): Promise<unknown> | void;