instantcode
Version:
AI-powered web inspection tool - Pick elements and get instant AI assistance
15 lines (14 loc) • 537 B
TypeScript
import type { Express } from 'express';
import type { Server } from 'node:http';
import { WebSocketServer } from 'ws';
export interface ServerInstance {
app: Express;
server: Server;
wss: WebSocketServer;
port: number;
listenAddress: string;
publicAddress: string;
verbose: boolean;
}
export declare function startServer(port: number, listenAddress: string, publicAddress: string, verbose?: boolean): Promise<ServerInstance>;
export declare function stopServer(serverInstance: ServerInstance): Promise<void>;