UNPKG

ilp-protocol-stream

Version:

Interledger Transport Protocol for sending multiple streams of money and data over ILP.

23 lines (22 loc) 812 B
/// <reference types="node" /> import * as IlpPacket from 'ilp-packet'; import { Connection, BuildConnectionOpts } from './connection'; interface ConnectionEvent { (connection: Connection): void; } declare type ConnectionOptions = Omit<BuildConnectionOpts, 'sharedSecret'>; export declare class ServerConnectionPool { private serverSecret; private connectionOpts; private onConnection; private activeConnections; private pendingConnections; constructor(serverSecret: Buffer, connectionOpts: ConnectionOptions, onConnection: ConnectionEvent); close(): Promise<void>; getServerAccount(): string; getAssetScale(): number; getAssetCode(): string; getConnection(id: string, prepare: IlpPacket.IlpPrepare): Promise<Connection>; private getSharedSecret; } export {};