webssh2-server
Version:
A Websocket to SSH2 gateway using xterm.js, socket.io, ssh2
10 lines (9 loc) • 321 B
TypeScript
/**
* Connection state reducer
*/
import type { ConnectionState } from '../types.js';
import type { SessionAction } from '../actions.js';
/**
* Connection reducer - handles SSH connection state transitions
*/
export declare const connectionReducer: (state: ConnectionState, action: SessionAction) => ConnectionState;