UNPKG

@j0nnyboi/amman

Version:

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.

15 lines 456 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.closeConnection = void 0; async function closeConnection(connection, forceExit = false) { try { const conn = connection; if (forceExit) { setTimeout(() => process.exit(0), 200); } await conn._rpcWebSocket.close(); } catch (err) { } } exports.closeConnection = closeConnection; //# sourceMappingURL=connection.js.map