sdg-rpc
Version:
pomelo ts rpc
15 lines (14 loc) • 363 B
TypeScript
import { Server, Socket } from 'socket.io';
import { IRpcServerOpts } from '../..';
interface ISockets {
[key: string]: Socket;
}
export default class SocketAcceptor {
sockets: ISockets;
server: Server;
opts: IRpcServerOpts;
route: Function;
constructor(opts: IRpcServerOpts, route: Function);
listen(port: number): void;
}
export {};