UNPKG

js-smp-peer2

Version:

<p align="center"> <a href="https://github.com/mhchia/js-smp-peer/actions?workflow=nodejs-test"><img alt="GitHub Actions status" src="https://github.com/mhchia/js-smp-peer/workflows/nodejs-test/badge.svg"></a> </p>

32 lines (31 loc) 811 B
/** * The base error for `SMPPeer`. */ declare class SMPPeerError extends Error { constructor(m?: string); } /** * Thrown when there is something wrong with the peer server. */ declare class TimeoutError extends SMPPeerError { constructor(m?: string); } /** * Thrown when we are not connected to the peer server. */ declare class ServerUnconnected extends SMPPeerError { constructor(m?: string); } /** * Thrown when there is something wrong with the peer server. */ declare class ServerFault extends SMPPeerError { constructor(m?: string); } /** * Thrown when there is something wrong with the peer server. */ declare class EventUnsupported extends SMPPeerError { constructor(m?: string); } export { SMPPeerError, ServerUnconnected, ServerFault, TimeoutError, EventUnsupported, };