UNPKG

webssh2-server

Version:

A Websocket to SSH2 gateway using xterm.js, socket.io, ssh2

9 lines (8 loc) 514 B
import type { Server as IOServer } from 'socket.io'; import type { Config } from './types/config.js'; import type { Services } from './services/interfaces.js'; import type { ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData } from './types/contracts/v1/socket.js'; /** * Initialize Socket.IO with service-based architecture */ export default function init(io: IOServer<ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData>, config: Config, services: Services): void;