@sotatech/nest-quickfix
Version:
A powerful NestJS implementation of the FIX (Financial Information eXchange) protocol. Provides high-performance, reliable messaging for financial trading applications with built-in session management, message validation, and recovery mechanisms.
23 lines (22 loc) • 968 B
TypeScript
import { RoomManager } from '../services/room.manager';
import { Session } from './session';
import { SessionConfig } from './session.config';
import { Message } from '../message/message';
import { Socket } from 'net';
export declare class SessionManager {
private readonly maxSessions;
private readonly roomManager;
private readonly logger;
private readonly sessions;
private readonly DUPLICATE_SESSION_LOGOUT_REASON;
constructor(maxSessions: number, roomManager: RoomManager);
createSession(config: SessionConfig, socket: Socket): Session;
getSession(senderCompId: string, targetCompId: string): Session | undefined;
getSessionFromLogon(logon: Message): Session | undefined;
removeSession(sessionId: string): void;
closeAll(): Promise<void>;
getSessionCount(): number;
getAllSessions(): Session[];
getSessionById(sessionId: string): Session | undefined;
registerSession(session: Session): Promise<void>;
}