{"_id":"@truffle/dashboard-message-bus-client","_rev":"33-ab0bb2a19661532663126301337f2f4a","name":"@truffle/dashboard-message-bus-client","dist-tags":{"signTypedData_v4":"0.1.0-alpha.2","typescript-migrations":"0.1.3-typescript-migrations.0","hardhat-error":"0.1.7-hardhat-error.0","latest":"0.1.12"},"versions":{"0.1.0-alpha.0":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.0-alpha.0","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.0-alpha.0","maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"c417abac0c87f881e6fc6cfefbe5e42800a685bf","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.0-alpha.0.tgz","fileCount":30,"integrity":"sha512-P58bkvE7cb2HvsZSstqmfHuSb5r/GHSPGbBCLD9TrjYQXFfIzxl0Ea5ikHykilPhM2W65p+TVPqD2fV/Ff1BIw==","signatures":[{"sig":"MEUCIG2GH3+qqfKn9BpN00DdrPd2d3AmmFmK5ZEJtBZi90tQAiEA/iejgcmflSjASuhUQm6Sc8/cudz2BZj06S+RNLGtee0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitIQcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMHw//YPyIfsy88eSW0kwvRmtx69xeM34POXL84vTCGEr7mrNx/BR3\r\nCJoI6MaZM7AXzc+I/UJeLClOJRt8F/p0Z7hrrM/iqAdrdPO7yFA5HhERHPGU\r\nVVNZpG+BbjduzwB3IsmczgPw+WWLcE7QmWguweHhrx4zL8+W/X4+RUcvLRp4\r\nmqq63VUpI1WihK7ErUIPSKQfZhmvphjXuo9y2GbVtbM9UCApdQpDW3HaVWyb\r\n7Q2YzMD4r7TVlwmc4wEb/rsdO+Adgy1sTnBOdIZEN+Nobnvj+1zESjY0ZmF5\r\n4pLjJ8whkXtF9n6S7Eyv7ElwSpIW9MzZW1ejDFuAwAQeA69rW6cRkrhv7Rei\r\nczg2pWnKIIGYnbWK+IpR8ZuDKiMq/kG9Bzt+xHYY24/kME0b3HjxU6TTBSXc\r\n8a+Be7keyuqsT2otDFKg4LUKVqmSEl7IjFzQx7N94V3Vw7KQG08QS5xd2Lfi\r\n5iFD/XOeqYs9dLqCbvGFVF/lUzl1FBPG1L/E/YAYTeXvEnmnKaKVlkDGhszA\r\nCmrtXjAYmjEk/R54aJkwVPp2F8vNmS8RjCfW6oGz8HH/dBUuVavPP3wNuaVr\r\nkoSN0Oj3+Zu4Vd6OZeXBFU11vdnf5EcHlJ/yQFGeIv5DuEXUFg6n4oiA3ttQ\r\nDYWkbC6OHB9NlMJeR4g/8pUPsZdhYMfUbDM=\r\n=30Wj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ecd43cfe3d89d99231c171ced84cd113413d9c98","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"eggplantzzz","email":"pobol234@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v16.15.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.15.0","dependencies":{"axios":"^0.24.0","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","@truffle/promise-tracker":"^0.1.0-alpha.0","@truffle/dashboard-message-bus-common":"^0.1.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5","tiny-typed-emitter":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.0-alpha.0_1655997468470_0.3606548070619462","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.0","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.0","maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"9a2f1540351eecbe3b39b459fd476f8ce727f95b","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.0.tgz","fileCount":30,"integrity":"sha512-1YsTWUYvY/b5+gs3e3AbdZHAj1K1vqxhZVGkQtSlJfAryFjKHW75prGXaehVwF2gUxf8qeBeC2vmGiCNxqFrLQ==","signatures":[{"sig":"MEQCIBFnxsc2qFP4DqlveZX/LIFhmveVTr3r9b379N+SPyulAiAop1eVSBY2vGzqNXjpAEhlfaXx4TkhU2oGBvsKwrcUqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitND+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrW7A//b5MVdI93Xch1AHXXI0RWuBSNqa55YmFFcZRpSNQnOW31OJcj\r\nLMw+uayg+7k5wPZCu+apYd3giwl3UDWnAmhiMkRxjS4vxuFDHtm505UpthXj\r\nJDMwiwvFmx55PG/pKr/kXyrRmCSr0wq7tolpoF0Ovc6bqdhguHYs5DT5VTu3\r\nplorkTCWTPxBT+Jnv4D2eBSk7k7PAr7FngRG523sWNtZ2sndjDHQyf9YAInf\r\njrHJDRKTWRTbryVNMeirdGZ0sMx+0nP6RpPEvRGKhjf5QEK7ywGugCedDQfc\r\n4WFqQ77FmGvO7d511Gj4McpDAdLCTa/NX08veEggC7qhObkXFZKquFk0wRgB\r\nXvCH4bsWDTe44NbQEJpNotBoxF9ocvhH6zKsEGlpEhdUnDDvKUPbLa6gY39D\r\nYflt0GViW6nlunRsDTsbvjnZ+Y3eaGiCsnSkBOZeJfUWdVOV6FrT/JK2ShjZ\r\nPYQKIApB0GNY4XzzFJaTq6ybo6m4tjrzYGB0guqeVl0VKK01FLyHa7EZf3sf\r\nGJR+uRu9/n9+p95D4XEbQsdlwYDHXqIYTU95Zyr+etxNuHIFPQZ6UwcXwpRT\r\nqZvEplNmIz0hGBdAA0ugilg77t/gK0owBObrb9rMVk0nZO0iLPN5xF4mUMm0\r\nN1lAb5Xd7cPEXkpkJifw8j1mslbVpbDcuPw=\r\n=GcKf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a6b6462487c2495b64d5e1a7a8a6490ca09e0a73","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"cliffoo","email":"cliffzhang08@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v16.15.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.15.0","dependencies":{"axios":"^0.24.0","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","@truffle/promise-tracker":"^0.1.0","@truffle/dashboard-message-bus-common":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5","tiny-typed-emitter":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.0_1656017150245_0.2442613542274481","host":"s3://npm-registry-packages"}},"0.1.0-alpha.2":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.0-alpha.2","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.0-alpha.2","maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"a5263da96a7b2cfbf451d918da441b5a1820ced2","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.0-alpha.2.tgz","fileCount":30,"integrity":"sha512-DakjH4hAfux/qE+uL7W1ICEMsMqUBPs/nbJ0bvikst83cPTEnahcro9ndzPzaVvyobDrHh4eZW5i0GzQJfEj/g==","signatures":[{"sig":"MEQCIB74ofqWe1j3pG/wL+oBItOTAX9fxhgyHGrE6eaK48+rAiAisNbv6JIQCs0/11N7ccM0uvGiq4eFavqf7SL6Z0UCFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiteI/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTuw//SIlb1QdSHyDSntUrOBERruWJEZCNITT6udiVPzworxH5sf33\r\nn4XFMOKlKR3+Dwr/8z3iVKzFPBMY/yRaT9MjRAd4qz6d6N+NOfygQiv8+hCg\r\n4OmIORliqfQUjO5E2/ZGpkeSH1BqZxPH7VHuj7k1UeXTqhNv/3IjQGbxltgo\r\nIvzh5kYPBaWGzfXWffBs1tbK4FPLMd/fFyTIVR5ACKR8I0q5EcreICAzkd6n\r\ngAw7MmxdfSI9Y2tke8r7N+/HTIJa8DB2TCXYJhqajRTKcGs8bJvxUgcWsWEh\r\n/6DGabW3xuTkLu/PqiPeJr37xwRQacnCiVYWUId0H6HPlXpBn6vOvItF0p6B\r\nQBt1UXUAD250YwksSEgk58UwI40dTpIPpnMT9f/vFDBX+UKNxD4hB4m7l7s3\r\nD3H+WAuwaf5vsqLQsQ9ZN+gvxrhxUxEQj59f0fqg+E5PYPcP48xsTMyCMysr\r\nl3b30/GYUR8rHX1yO6u1UhIIBKqFJCzlfyiepjF0irV9XYW4OFECJKEpK10+\r\naErH5PVQcUOMbdYctmByD58IZiHEIXF6oI3TQ/H/E+tTAq5K+7Jbb4RRY7yV\r\nzs2uCi9+Vm1mQfrNOA7pemu38V0hOzRef+XHYtLu4KJvqRZX6zEalEMizpMB\r\nBH/QNC3PI1kKJdmwfjqO2DrEsLCpxH69+bk=\r\n=TCNx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"# `@truffle/dashboard-message-bus-client`\n\nThis library is used for connecting with the message bus that powers the\nTruffle dashboard.\n\n## Usage\n\n### Connecting to the message bus and producing a message\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\nconst message = {\n  type: \"helloWorld\",\n  id: new DateTime().getTime(),\n  payload: {\n    hello: \"world\"\n  }\n};\n\nconst messageLifecycle = await client.publish(message);\n```\n\n#### The lifecycle of published messages\n\nPublishing a message creates a lifecycle for that message. The lifecycle is tracked by the publisher as an object of type `PublishedMessageLifecycle<MessageType, ResponseType>`.\n\nPublish message lifecycles terminate in one of three ways:\n\n1. Receipt of a corresponding response message\n2. Invalidation of the message\n3. Abandonment of the message\n\n##### Waiting for a response to a message\n\nTo enable request/response messaging (e.g. proxied JSON-RPC messages), publish\nlifecycles contain a promise that resolves when a response to the originally\npublished message is received.\n\n```ts\nconst response = await publishLifecycle.response;\n```\n\n##### Abandoning messages\n\nTo allow for fire-and-forget messages (e.g. event data), simply call the\n`abandon` method on the lifecycle object.\n\n**Important**: If the `abandon` method of the publish lifecycle is not called,\nthe process will hang forever on exit, as it will forever be waiting for a\nresponse that will never arive.\n\n```ts\nawait messageLifecycle.abandon();\n```\n\n##### Invalidating messages (aka message cancellation)\n\nThe consumer of a published message often will need to perform some longer\nrunning operation as a result of that message. To cancel that work, or to\ncommunicate to the consumer that the message is no longer valid, simply call\n`cancel` on the publish lifecycle.\n\n```ts\nawait messageLifecycle.invalidate();\n```\n\n### Consuming and responding to messages\n\nMessages can be consumed by calling the `subscribe` method of the client. The\n`subscribe` method returns a `DashboardMessageSubscription` object. This object\nemits `message` events whenever messages are received that match the\nsubscription's filter.\n\nReceived messages are wrapped up in a lifecycle object similar to the one used for publishing messages, however there's only a single `respond` method.\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\n// omitting the type string in the options object will return a subscription\n// for all messages\nconst subscription = client.subscribe({\n  type: \"helloWorld\"\n});\n\nsubscription.on(\"message\", receivedMessageLifecycle => {\n  const helloTarget = receivedMessageLifecycle.message.payload.hello;\n\n  if (helloTarget.toLowerCase() === \"world\") {\n    // respond by passing your response payload directly to the response\n    await receivedMessageLifecycle.respond({\n      someArbitraryResponse:\n        \"Why hello there. Pleased to make your acquaintance\"\n    });\n  } else {\n    await receivedMessageLifecycle.respond({\n      error: `I'm sorry, you have the wrong number. This is world, not \"${helloTarget}\"`\n    });\n  }\n});\n```\n","gitHead":"4ad7d2c4c7ba31fc5e02c831d615cc58e863c2cd","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"eggplantzzz","email":"pobol234@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v16.15.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.15.0","dependencies":{"axios":"^0.24.0","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","@truffle/promise-tracker":"^0.1.0-alpha.2","@truffle/dashboard-message-bus-common":"^0.1.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5","tiny-typed-emitter":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.0-alpha.2_1656087103658_0.847007255387304","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.1","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.1","maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"8719ebaa7c5758853b81a33e8a6014af796727bc","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.1.tgz","fileCount":30,"integrity":"sha512-tLcLxfnk8fa8m6gnnIiuIkJXMwOnm1gX60hXis091bEokJaR1/RYEdDQsFxy8/XkJmOOEfQ0NRD5ZPXn0KYvjA==","signatures":[{"sig":"MEYCIQCzVrOEeZK5eH5UHop76MoB+J+VnqGCPKySrFOAF1VD4QIhALhfbApA4RiGfI5K4RHeoM15xZUWktMCIZ9Fu5bIFn/I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv2DNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr8RAAh5eZC/1sPZ6mahKEMADI0QdzQGwaMsRA5X2sFsYJZBQ2Y46D\r\nTmg+HAGkokw4lnuVVKO4/HWHaRazhxDIWD9gDs9hFeML09Yscv+6bGljYN0p\r\nBaS19TK0am3IYU20t2HqIdEGwXVDGN0LodaklQZn9NkZYis7/9m1unWHCcgz\r\np/va5FHDj8YCDdpHRSnqJB4xMP+NJuawD7yG09TQDSMMr4SobAGbWwqu26Zb\r\ndXSEWDQvNRsKN7EI3GdcEm2ovxJJWwvfr+v3w25b4P4kSo27yjdu8rNpH9FD\r\nffstAZsDEsPJrOFhvs2fmgA9A53zlqtzrMZSPaOMnUXQxb8AtBt5avTFwrWO\r\ncis6vxXkL4sgW2M3KZbDwKxOdnnXM9zlc/gohEmTyULH1FvnE1zEv+PMprDh\r\ncXI61K+Y80kysnVsrZEtmy/gRkzgGpiVjWPFkNUiMmaR4ynoPY8khZ2Mq0CF\r\nI66a10bXvACeKtuilqD+3FIymdVPHqetfsUi4WTJPGr9bjjQG/PR54ssuqYH\r\nqXthwQFC4UYcr/uAsTHR0GrYHYQs1tKBgH47S16OhuWPxMWlSuG1EEQQhSwC\r\nPW8mw6NmgrzFkRupinW3u1jBWm7tCp9L2gtcpDZtjo9y/lQVU5UESI9LDRkf\r\nGvCxndXXoTySpcOIOMPiPhnhPjBrI5hY1cI=\r\n=j7/5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d30ce8fcd3a84044c04ac7466d4b3be2b4e8ae48","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"lsqproduction","email":"ll@trufflesuite.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.18.2","dependencies":{"ws":"^7.2.0","axios":"^0.24.0","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","@truffle/promise-tracker":"^0.1.0","@truffle/dashboard-message-bus-common":"^0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.1_1656709325540_0.0013166550020835555","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.2","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.2","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"2fa6c1cf7e69bccdb16b84bbd94dc903f2dc5bb7","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.2.tgz","fileCount":30,"integrity":"sha512-Gm+ZaCL3HWKBDYf8w6Zl5OpgkTfExqDUi43bl2InUOjDzmyZsSHMmaKp1RF2aNRSRPhI1VI1mCw1lPQrasSU9A==","signatures":[{"sig":"MEUCIQCM9r6D44vaNBkRwOsFAq7jzKMIkx8a/U8oS79kj6rr/gIgbqj9eSIwHcpWwA60NL82ECFB+FLKm+ipcicddHGOI6M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0dMsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWVxAApOHwWmiy6bn2ud5QRUUtO9Ozbbkuhii52EGTF5HQb4n0/83C\r\n8lrK+Reb9eFEuszTrUCmJHFIOQRy+4P2sRnFyKSAlLF71PM0rIJMTNePaKn+\r\n4o77ZYP1tAhiI4IdpB+kf36f9XydIBJ/Z956YjHNb4Vedh7pV8G+CxtGETmb\r\n7gxqBWyIFoRlxD9bJI5LDTweyKK7cPN9VVM8bvb+6aMEUJ2FUnialTrJkwmd\r\nJ5ZYykNtHkuSQebph503rAOjJwmrhdY6rzjPSWq8N5IcHka8ULb6Z+dWajFV\r\ncdzGH8QtKmIzZbR3WBI44T1I48WOX79BPeub9Oou2tZzfAifr6a4N6cEtuy8\r\n6idhagBsbltubkFKeckY7zf+AYpY0Kzt+w7S1XHTG2dTIK98hjhf5oNyFTSv\r\na/tpvbJsbRrLZ/dAoOz92F5gbLv5H5bXNnDDWx335Tz5L7drEt5QdOeIOjlS\r\n/2ayusPhPzcHFMT0zlf/24dTh91qOm0rO91oFetXudvmI+mBO8FDSZs9LvYH\r\nzivRVWucYwNX/EvNskSX4UEzIH23Db8Q2i3+mIgGdqFxGCz12BZ8OspBc9rH\r\nE2E/H/Z/g6trSeWS87VUPceem8EUg/KIkpIaJVSw4r5MHl8MiSoqou5rwxvw\r\nLW/Rwy2lxswJriSRAFC2Lrt0bwSrXxagu/Y=\r\n=P1/S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"76fec0004b4cdba773dc131044977f1e2efbf9fc","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"cliffoo","email":"cliffzhang08@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v16.15.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.15.0","dependencies":{"ws":"^7.2.0","axios":"^0.24.0","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","@truffle/promise-tracker":"^0.1.0","@truffle/dashboard-message-bus-common":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.2_1657918252358_0.26193784971324474","host":"s3://npm-registry-packages"}},"0.1.3-typescript-migrations.0":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.3-typescript-migrations.0","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.3-typescript-migrations.0","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"a417460e3ddb1284543082799d7a01c88f3fe265","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.3-typescript-migrations.0.tgz","fileCount":30,"integrity":"sha512-yR46IUCZF5oOd5HzUfTBR+Z4aXxOP5Lj+IqqM7d3PdRLKC/AJK86gRrQ1UWeFAONT9OHdM5PZn2ytkIUYFISBA==","signatures":[{"sig":"MEUCIH6IAsR2mZaTB/ov5sSnpuiJYHN0c+zKvRY5duyuLhfRAiEAxNlkQxTOoMttCxtVUrajpl7ATqsy6vPfs6VNQ7/sbZw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2LyQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmol1A/9GVuGWlUByYwMnE0KldlFdIwkVgM0Y9rDgZsgEQOY6hFZxFLE\r\nvG4NbqYcNVn3psa+U46GET//kbfBFjsKf9UaULg0yo5Q3Ga1ZtZyikzbIT97\r\nwUNEF5tCDrMUn4C5LO0/jiOao96tqGvc5nqjVVv+9O8SNHbQI9m/9zv5K+gN\r\n18q6ZEBrREDjnd2U1eNR+PXBp/fMs/JiaeDi2yeBfFoCm4pjBXt9Ejs9Sz+O\r\neQL7AQWAWdNwiOY7jinjH0BlhszlEZsNx9Xo/A3lc6bbgZyqWyc585LaZ7RC\r\ngnPKwPAmlTFQXSsduq2RwOBdaHMIxkYQNaqjuPQoiazsIj1Mi9z+4LWLTOed\r\n1Efee8dCxXcpMi4kuvMbZvfl2kzQI9X44oyU0nLZbs5X+ixxDEL1nMNQROdj\r\n8kOkeT2tIeiX1GP2LdvBRvP404cz3yVJRdYKmACK43lHtUAkzo0M0Wxtb/m0\r\nh0RVh7a/NN3cQZff45TiLdPg+0AH41uQSSLZKCWFnVKxkNNI2HsXyxdMlPYP\r\npe4s56Z8nl73EQtsVbPGYNXyKRGrmFGG863u6gUu5NxUsnRg3BVOmXx+4gBj\r\nvT35mjjRaINNAaH6Hi9+sT/CVK3XeQcwDZie5p7p5olCD1EHhcyJL0H6jw2B\r\nPWALWbrAJkhehOSKWu+wkBuM/7uxV56JP14=\r\n=e00q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"# `@truffle/dashboard-message-bus-client`\n\nThis library is used for connecting with the message bus that powers the\nTruffle dashboard.\n\n## Usage\n\n### Connecting to the message bus and producing a message\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\nconst message = {\n  type: \"helloWorld\",\n  id: new DateTime().getTime(),\n  payload: {\n    hello: \"world\"\n  }\n};\n\nconst messageLifecycle = await client.publish(message);\n```\n\n#### The lifecycle of published messages\n\nPublishing a message creates a lifecycle for that message. The lifecycle is tracked by the publisher as an object of type `PublishedMessageLifecycle<MessageType, ResponseType>`.\n\nPublish message lifecycles terminate in one of three ways:\n\n1. Receipt of a corresponding response message\n2. Invalidation of the message\n3. Abandonment of the message\n\n##### Waiting for a response to a message\n\nTo enable request/response messaging (e.g. proxied JSON-RPC messages), publish\nlifecycles contain a promise that resolves when a response to the originally\npublished message is received.\n\n```ts\nconst response = await publishLifecycle.response;\n```\n\n##### Abandoning messages\n\nTo allow for fire-and-forget messages (e.g. event data), simply call the\n`abandon` method on the lifecycle object.\n\n**Important**: If the `abandon` method of the publish lifecycle is not called,\nthe process will hang forever on exit, as it will forever be waiting for a\nresponse that will never arive.\n\n```ts\nawait messageLifecycle.abandon();\n```\n\n##### Invalidating messages (aka message cancellation)\n\nThe consumer of a published message often will need to perform some longer\nrunning operation as a result of that message. To cancel that work, or to\ncommunicate to the consumer that the message is no longer valid, simply call\n`cancel` on the publish lifecycle.\n\n```ts\nawait messageLifecycle.invalidate();\n```\n\n### Consuming and responding to messages\n\nMessages can be consumed by calling the `subscribe` method of the client. The\n`subscribe` method returns a `DashboardMessageSubscription` object. This object\nemits `message` events whenever messages are received that match the\nsubscription's filter.\n\nReceived messages are wrapped up in a lifecycle object similar to the one used for publishing messages, however there's only a single `respond` method.\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\n// omitting the type string in the options object will return a subscription\n// for all messages\nconst subscription = client.subscribe({\n  type: \"helloWorld\"\n});\n\nsubscription.on(\"message\", receivedMessageLifecycle => {\n  const helloTarget = receivedMessageLifecycle.message.payload.hello;\n\n  if (helloTarget.toLowerCase() === \"world\") {\n    // respond by passing your response payload directly to the response\n    await receivedMessageLifecycle.respond({\n      someArbitraryResponse:\n        \"Why hello there. Pleased to make your acquaintance\"\n    });\n  } else {\n    await receivedMessageLifecycle.respond({\n      error: `I'm sorry, you have the wrong number. This is world, not \"${helloTarget}\"`\n    });\n  }\n});\n```\n","gitHead":"a686945780ca094faaa3c237f4f94ceb659863e1","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v12.22.12+x64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"12.22.12","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","@truffle/promise-tracker":"^0.1.1-typescript-migrations.0","@truffle/dashboard-message-bus-common":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.3-typescript-migrations.0_1658371216116_0.47485492982758437","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.3","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.3","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"d30583b58d01be59fb2139eec6e9635a3a0f703e","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.3.tgz","fileCount":30,"integrity":"sha512-uP2d98dYFOYfQ2H0TcGWDfrPbMnQEmZjsLdwbr466kEu5tuDCjl6OFm51Ejvbb+W1Pn1/q7AZ/kLimlMxaSK/A==","signatures":[{"sig":"MEUCIDNrRsxPJiEj2GKU62ZsFaV5oIheQUHdAuB/1xJzLmvpAiEA5PiwcYtQ0wJVDPpB1vuIrMQvGFLGZpFLCHa3pX4IGI4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2eHrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosGg//Y/DFKzFYVY/21MtfLFAF9pNwvVAidFhcVqhbUAsSZBLY+zAZ\r\nSHbGa9Wh0qwshD0vDOoxyE0I5Ydy6mHrIR9RS5VfKzx0XeYiMWNth1HQGD0e\r\nqNDvF+EkTC943O27kPmhkC/x3eP3uw5sOBEJd3PpJ//ZneS0Gww28mpEaAmV\r\nbpwAoKHvHj5BgzMg80noQDcHwMmYSBwIBHcRpqy56gWv8bOgE1oOHt0b0vca\r\nABpFoQflw+XwKyi7rmhSq0JL8PLaTBT8k/ZcYOCkICX4XoKhsBitUH+m4f68\r\n6HrZxteCYV66QLuj4j+ue7ElAhR+ChLs88Bd3ocXU8mXLPYFqy+4iS60NKQ2\r\nM9rlrCqSB4whMVhVaPhHk5OSHLWdwfYmhaMzA7Gopfpd4GMUynx3tMlPWNy8\r\nawO9TgLwue2Bg13IlXO/pS/m/1I4raUW9m5mZDiKP+Ii6lmxfzHgoDK8DYZL\r\nn2mifMRfl9IM3hFC6tVzNNi6+vMqwcP2LM/shfymBT3gMqXCjlZZTq35MxZc\r\nGiPrYakqulD7OZnQ5amZxybnvVaZYbypdQ55pdwghdLW0jN6uB+L7ctnH248\r\nzC6Z8SdZ4ZsJ/kNoyla2UTYra4IzVn3LFCI8ZKV40x26cmsAXPEAW3W5jdRI\r\nFPQI8gLGN/JfIMTLPCfAuP/+6t8jKLslVFc=\r\n=Kt7+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"074c8ac1695d241096843a163a1bc95c34a3a117","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"cliffoo","email":"cliffzhang08@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v16.15.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.15.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","@truffle/promise-tracker":"^0.1.1","@truffle/dashboard-message-bus-common":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.3_1658446314845_0.8455499823107633","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.4","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.4","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"dc64326bd7730dea592ad56855b175150f358bb9","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.4.tgz","fileCount":30,"integrity":"sha512-f0R9oL2iIM7otryf1cdmwRx0xdbFtk9gb+hGbnYZ0MXfXcL7ptOI3oHZ7XVn5d932sTWM8vRr7xYCnNwZKKrhg==","signatures":[{"sig":"MEUCIQC8wWDMjFZC3XC/KvSHHnO/EqwQeQw3On8Ia867y77cjwIgJLc4iyN7khedWCncHc2pFzgEUwbIwhIaZr8UG80ZPuU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9C/CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQJw//a6ZZOo+RrlPYnWg/Wwib6ZSO/lq2jM1tSzqG14mVK+K8VTPj\r\nYxP+K+ZjhK7A+mkpLC1agxR9OiacQ1g5eFva5JN9AtAIzdQ1D9veL7KHC3ds\r\nulOswBIpuvg+mLCDXJ0zpy9Be2CSUsSSBZJflrUmXRgh5r+H1ddmI6MjZo6b\r\nSBTkDokhElbyYxJv4UUZlyLUSptRQqatftMK9xiz5+eng34UPt6FWab5VeCu\r\nic9lQWGXY7uxdNmdIJikUVC5sg7zbz9eVcrglsmtmBAzoOsop53F6Hyo98AY\r\nSdSVrkNTrCvudRanqPS4eZi8lr+vgqzX15M0Jbsx4L/00WUeRcYCAHuxfeid\r\nhJZ66ET39yg+t7BSNrjUbArHvT1vMd+ajp9kQKfgfZSfQle4KvTpZdR4/LuE\r\nGz6JGI8P4OhGoEBhbQlfl96Ih7X2Zk6o8/nJ6FdgnMelIGMUsjfJM1wpwpSV\r\nbfnG+aCZ7pkFMDskhugTkjHiObaSwp6OvFhcLqcFM+fRH4cMkPWlXDw9UvDj\r\nnFohEjb2sa5gu1WbRXRDu+5ss4kfpL59uv1A8c7RiHvEcTsDiJ/HPAKV+Rcf\r\nZuQ1O2ZqUaMLVhu3hwF9uELxJipQOzaZ3oyIPG2G2L3SZIpoBfmjvfLKm2ZX\r\nFel8qxw5P7HP0Rx17FI4gwPW0hNS3WqET0Q=\r\n=73/v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c0e9b091678b131d3a5e28fa46ff64afbc0e4828","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"kevinbluer","email":"kevin@bluer.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.20.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","@truffle/promise-tracker":"^0.1.2","@truffle/dashboard-message-bus-common":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.1.4","@types/node":"^16.11.6","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.4_1660170178522_0.32429482403145604","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.5","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.5","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"0c19aa590b40283097754b8b1822a5314fe2047c","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.5.tgz","fileCount":33,"integrity":"sha512-dvMQHn+gGmtn0RGsfijfHz5EW8xTNGynRxVZpyepRjAbD0WJcZCG/09yiSzbMaA1mGwGDTcktNpG5jSDVFScWA==","signatures":[{"sig":"MEUCIQCR//C+Qovvl8Uopob5tODoV0AkOkGXIVPnig25MyeB5wIgIBJE1FKzQY/nghZMLas0wbzbfcc/OXuJWaGblwwvvso=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/XxjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIahAAl22qo9rzgeEVQIt9yY/6A7OJHYDlZ+EhA5CVFU2RjOey1dvB\r\nD/Djc5E+uBktpUvuD81Jab2MihJq0DaRLbZ6Xs+vu+J/tBK6g104L6GsT1L5\r\nII2Ai8zzcQu9MBqIIMquQ6PfHiY9NN+tKhvV1fDqQYCaZjiusZ/1tkXu3Dlx\r\nHhzENuVnKK0UxkAJ7BjMBogy79TTWlVu2lk/zMAZCt68OfwT0KR2c7z3cZvs\r\nkT0DbHwoJFRVDseM+oA+pTWLQbg4b34imoLeR4hkqdw+bdBxa2pJP+yiaF/c\r\n1ycHw2WhYRf+bv0kKU/47TUwLJoe+/9Qh+iVxkdVmVWinliZwoyPBCvqnmAr\r\nubtlTlbuhZu8qgIdL9PhViLL7RhIsRCBd5RDJiA8Bi+c7+iVYNgsE3dohtka\r\nGJSMqy3c44/uWTquJMmxcWnaHEji+lNt3gOKAr97gMPmo0fm9D62/RjeOQ+g\r\n4D1+6+uPJqZCKiHDaHpay8wj80tEZdz9EOTwN6IbVRTPvwV4DXYACfnVAR95\r\n00rZXWcsjgLbXJCSzAVYN0VHlagHB9H36Yc9jFrBy8oFE/+avABeab96IBQS\r\nSfPtlNN70i5WV0YBf+lq53j3OVot/kpZ25H1/wD/4hzWn4zTNxDMQpXEtxzH\r\nF33YGcUl9h9qL9W50RtEaDbO+mEN6AZJEbg=\r\n=MTIU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0d96061f25e0927cd1d158b1636464ded86a57bb","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"kevinbluer","email":"kevin@bluer.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v16.16.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.16.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.3","@truffle/dashboard-message-bus-common":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.5_1660779619017_0.4853331652385169","host":"s3://npm-registry-packages"}},"0.1.6-hardhat-error.0":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.6-hardhat-error.0","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.6-hardhat-error.0","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"8b9f223182d18a4f7260e04c59cda927b1ac8c6b","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.6-hardhat-error.0.tgz","fileCount":33,"integrity":"sha512-adXydZeTAg7yI/Rt1QPo+YR9awvb0aMBKG8cDkWbYQ0TdxyRma6Tcv7aT2nV56QLjhW/zqQAWDBIKUZjeRAWng==","signatures":[{"sig":"MEYCIQC35IgbcteD2xYBqCtYoQT5ce7TGgZNOyBFlWa5X5WA4wIhAL77FlJj0VLvuM7UH2wXDNKJoh8f0Y5Rea2hNVmL3CR9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAC0qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/Ow/+JY1U/Dn+ZV8qQlLGk6DC9nLpJpkY5qvdwRiPdVDCwjchmdXp\r\nYaNFjKgryWf2AqN96qmSIuJa0PX0/Luqc0ahFHFrWMAaD0GrMimG/Nlb0BDX\r\nv7kKM/OtrTR7KANpJJRxRbcoKKPdd43K/VtemRRawe7m+FwZQwgTBQWV2vEp\r\nl5umC8aaybDtvfb/LESOL0dWOEgBJ1DBcDxSiNfAgloNjk5Vuv09Jn0d9YkH\r\nJQgZXSkh0z8p842Hi5JrrkRB5qZYfx/11yfxsXHCA/wIZFqyIVBnLeycVGut\r\no6ls29txdzzqaYTl296F1lrHRH1mzM591P7OhJmg4pcIWcjwY0FwLxG59h3Y\r\nU4DoyZ8PZPGx8TBptZF2K/j1i5yFpamykXc6Ja9+fUPw3oRNgHEqh49DF4rF\r\nBg0lVO+j35NvuSVfJJyExNOKso1egHujsSstFgBYITAMw6JO2LausHLDOFfl\r\nTvO3AalKL4mP6UwtH9nJ0A2sCTnh0yUIA8We9DCvTKBYwWISDSE4ZGUff372\r\n93N9qxqTHV8qZZFM9IhaoU9VATtTGTqp0Mp1B+i6UlvN0UgvGR1L+mwDnMPl\r\nHMH0EtLHdDb0T6WAmugxre2hVC4BkNtZwFn0LZs1WyTKgugwMEUxo2JQPQvz\r\nmPh4MH/apZ/SVHU69sg+/ygxW45S46qqbJw=\r\n=lp5N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"# `@truffle/dashboard-message-bus-client`\n\nThis library is used for connecting with the message bus that powers the\nTruffle dashboard.\n\n## Usage\n\n### Connecting to the message bus and producing a message\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\nconst message = {\n  type: \"helloWorld\",\n  id: new DateTime().getTime(),\n  payload: {\n    hello: \"world\"\n  }\n};\n\nconst messageLifecycle = await client.publish(message);\n```\n\n#### The lifecycle of published messages\n\nPublishing a message creates a lifecycle for that message. The lifecycle is tracked by the publisher as an object of type `PublishedMessageLifecycle<MessageType, ResponseType>`.\n\nPublish message lifecycles terminate in one of three ways:\n\n1. Receipt of a corresponding response message\n2. Invalidation of the message\n3. Abandonment of the message\n\n##### Waiting for a response to a message\n\nTo enable request/response messaging (e.g. proxied JSON-RPC messages), publish\nlifecycles contain a promise that resolves when a response to the originally\npublished message is received.\n\n```ts\nconst response = await publishLifecycle.response;\n```\n\n##### Abandoning messages\n\nTo allow for fire-and-forget messages (e.g. event data), simply call the\n`abandon` method on the lifecycle object.\n\n**Important**: If the `abandon` method of the publish lifecycle is not called,\nthe process will hang forever on exit, as it will forever be waiting for a\nresponse that will never arive.\n\n```ts\nawait messageLifecycle.abandon();\n```\n\n##### Invalidating messages (aka message cancellation)\n\nThe consumer of a published message often will need to perform some longer\nrunning operation as a result of that message. To cancel that work, or to\ncommunicate to the consumer that the message is no longer valid, simply call\n`cancel` on the publish lifecycle.\n\n```ts\nawait messageLifecycle.invalidate();\n```\n\n### Consuming and responding to messages\n\nMessages can be consumed by calling the `subscribe` method of the client. The\n`subscribe` method returns a `DashboardMessageSubscription` object. This object\nemits `message` events whenever messages are received that match the\nsubscription's filter.\n\nReceived messages are wrapped up in a lifecycle object similar to the one used for publishing messages, however there's only a single `respond` method.\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\n// omitting the type string in the options object will return a subscription\n// for all messages\nconst subscription = client.subscribe({\n  type: \"helloWorld\"\n});\n\nsubscription.on(\"message\", receivedMessageLifecycle => {\n  const helloTarget = receivedMessageLifecycle.message.payload.hello;\n\n  if (helloTarget.toLowerCase() === \"world\") {\n    // respond by passing your response payload directly to the response\n    await receivedMessageLifecycle.respond({\n      someArbitraryResponse:\n        \"Why hello there. Pleased to make your acquaintance\"\n    });\n  } else {\n    await receivedMessageLifecycle.respond({\n      error: `I'm sorry, you have the wrong number. This is world, not \"${helloTarget}\"`\n    });\n  }\n});\n```\n","gitHead":"93f18f7373b74e774e5fa068da3ee3202541f372","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"gnidan","email":"nick@gnidan.org"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.19.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.3","@truffle/dashboard-message-bus-common":"^0.1.4-hardhat-error.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.6-hardhat-error.0_1660955945806_0.5291761830119344","host":"s3://npm-registry-packages"}},"0.1.6-hardhat-error.1":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.6-hardhat-error.1","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.6-hardhat-error.1","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"86c58321580d222949fdb0d8cccc46a2d26bf725","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.6-hardhat-error.1.tgz","fileCount":33,"integrity":"sha512-KBGq7XgTfZbLDNVd9GpPqovTWpOmni12qbebhHywJ8QzYG59whxtkDwO6yCpKlqd6wkbdqPbI7bDXWHPV63cfQ==","signatures":[{"sig":"MEQCIBhvw+BBQWq37F3JGcuzooMPhujJya7Gf9N3QR6CVWoXAiA0YZTC7yoAeGkZg8+r5LqISS6U+atP38pr5gLmh/YpMA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA/ggACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLPA/5AUu0dbG3+DISEsV9fuvJj0+eRzjQ1qZfrhPrvpYOsC8scsCL\r\nKinHgqfj1RstfOMxCBMD6rbUca1K8kJvKSrcsaPpohUKZbHBokFbYIeob6u4\r\nVtKXNTI72dT8XMDzchvKQyKM/HiElPOnVW8gwJsTdnIxmdW+dSujDtOBrZnj\r\n8PpW7dyRCoOo+JeDgQXFpwBgX/+7cy04GerFAvzzbC20ss3lkhMwwU+Yx7DG\r\nOqhtRG23VpJwv5RBK6s71QbrBcrvY4GHzrFQOkaqbH3AiPeKemdwzig5QXxS\r\nOr4e791v2fWjFjx8a/Jlw4C8d2Zl1/s2NfFMQtTbGkGtGE1LFYmUav7uerCh\r\n86jyjBlhCbEUDipIHo1xZktGLU9+Uh/KB9ZLd82F43Rvav3aSlIoWaaK8Ego\r\nwp9k+Ql5AAkwgRSClJYqTUCzkVn8BTp9qZuaPOU72+aapajjW2+GjLycUT+L\r\ni7u5DJkwk8Kmz/I0U1pkc7uQiZrFrcIwTjHrJBpPwwgiTPsWlIz/bhBNzaU1\r\nBkR15b2jGB8MAksOvtBPiDdS8UgdQYW1B2vxxela6KHu86bMu9wtS9rFEGjC\r\nNobuXKZ4dEY5vlWHOkE378MKkYtwv5WY9uln4jxWKfPpk2AmeHL4E861c9ym\r\nn2uR+XvatOnCRDF8R3UB9694NwCY/FKLs7A=\r\n=N/E1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"# `@truffle/dashboard-message-bus-client`\n\nThis library is used for connecting with the message bus that powers the\nTruffle dashboard.\n\n## Usage\n\n### Connecting to the message bus and producing a message\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\nconst message = {\n  type: \"helloWorld\",\n  id: new DateTime().getTime(),\n  payload: {\n    hello: \"world\"\n  }\n};\n\nconst messageLifecycle = await client.publish(message);\n```\n\n#### The lifecycle of published messages\n\nPublishing a message creates a lifecycle for that message. The lifecycle is tracked by the publisher as an object of type `PublishedMessageLifecycle<MessageType, ResponseType>`.\n\nPublish message lifecycles terminate in one of three ways:\n\n1. Receipt of a corresponding response message\n2. Invalidation of the message\n3. Abandonment of the message\n\n##### Waiting for a response to a message\n\nTo enable request/response messaging (e.g. proxied JSON-RPC messages), publish\nlifecycles contain a promise that resolves when a response to the originally\npublished message is received.\n\n```ts\nconst response = await publishLifecycle.response;\n```\n\n##### Abandoning messages\n\nTo allow for fire-and-forget messages (e.g. event data), simply call the\n`abandon` method on the lifecycle object.\n\n**Important**: If the `abandon` method of the publish lifecycle is not called,\nthe process will hang forever on exit, as it will forever be waiting for a\nresponse that will never arive.\n\n```ts\nawait messageLifecycle.abandon();\n```\n\n##### Invalidating messages (aka message cancellation)\n\nThe consumer of a published message often will need to perform some longer\nrunning operation as a result of that message. To cancel that work, or to\ncommunicate to the consumer that the message is no longer valid, simply call\n`cancel` on the publish lifecycle.\n\n```ts\nawait messageLifecycle.invalidate();\n```\n\n### Consuming and responding to messages\n\nMessages can be consumed by calling the `subscribe` method of the client. The\n`subscribe` method returns a `DashboardMessageSubscription` object. This object\nemits `message` events whenever messages are received that match the\nsubscription's filter.\n\nReceived messages are wrapped up in a lifecycle object similar to the one used for publishing messages, however there's only a single `respond` method.\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\n// omitting the type string in the options object will return a subscription\n// for all messages\nconst subscription = client.subscribe({\n  type: \"helloWorld\"\n});\n\nsubscription.on(\"message\", receivedMessageLifecycle => {\n  const helloTarget = receivedMessageLifecycle.message.payload.hello;\n\n  if (helloTarget.toLowerCase() === \"world\") {\n    // respond by passing your response payload directly to the response\n    await receivedMessageLifecycle.respond({\n      someArbitraryResponse:\n        \"Why hello there. Pleased to make your acquaintance\"\n    });\n  } else {\n    await receivedMessageLifecycle.respond({\n      error: `I'm sorry, you have the wrong number. This is world, not \"${helloTarget}\"`\n    });\n  }\n});\n```\n","gitHead":"d7345a9c4cbddc7953e78b9e1e224f825ebd1b21","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"gnidan","email":"nick@gnidan.org"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.19.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.3","@truffle/dashboard-message-bus-common":"^0.1.4-hardhat-error.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.6-hardhat-error.1_1661204512677_0.032782600307199816","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.6","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.6","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"1956c1582fd2c1a923343d12d8543db92eba6baf","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.6.tgz","fileCount":33,"integrity":"sha512-qIf5e+/xfZfXiiOkfWKtRjwbkstpjQpCkbndKSKhZcnz3QLkDIvfgSU6K9d+j4AyNCq4oN38gWoLDa3PVqZo8Q==","signatures":[{"sig":"MEYCIQCvM7Ikc3urY8Qh9eDYUEN+ze4tL5zw/+cik5qLlGMSQwIhAPtmurNTm/7wGcbfAa8rzlomut8+h14uqy03liow7c1C","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBqh8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlXA/+Jv+m77Sqy/7aZAHo8S1qLuDymzt9E+Xz5FzkzpPP57IfRr60\r\nbpm0+m6wrgDi8I1HfOdjMZUafdYgKJT9PgutYqawzpnAAiVGUUp9C85FdMRd\r\nO0xPZUyBxcIB8/hwhx7qrziiYWxVhql4w54K9CA7QUYg6FqeUECgFKUiZLbf\r\nl6O3WFkRHcJrrFfzldnT5QJ6CtxVRcARh0rp3kX0qjKP0htR+vFfCk7ampuI\r\nxW26r2yyxkWwEoAIG3Ofbtx9cx0eMeQfKYVF6App0psRw11Y65LYgv46z/si\r\nWOE1uq9bAgs9nYx3QmrLPRuhCJ7lcUpR290i4MTKJKpZaJbmWdd6knNsCrlC\r\nfVOAXzrpf3osLhJi1gjFOktE+PLwd7CZiyP5QJ0BThfwCxikUCpldDSeGsIz\r\nYtNQfDYEW4aFAlQg1fMwwVSiRUiS9S02VgNAoDu1vDHlLBPmrBycob29MZwz\r\n7YDfmLd5Ne1eBYbjrqdeN82CyghDx/WE65e+OSnfrkkmm4kkdtzdD9fXS3DR\r\nWxT0YYY2XRa/nIzY1sb2VzDqm28JQ1ik0u886H2z5O/Z3NcpCW0Mtxs4NreW\r\ntyL0K2op4uA/UxwoOgQlxIAuwMRoxz8/LHWdv9eQh5v+GCY7Gj5pY9dj042Y\r\nDZlWWrDnzTwxCrTJEw3zFR/YXjimBrAa+Mc=\r\n=UjkB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"fb1f58675bf52bb7dc11e45026c8b43aeca401e9","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"haltman","email":"harry.j.altman@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v12.22.12+x64 (linux)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"12.22.12","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.3","@truffle/dashboard-message-bus-common":"^0.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.6_1661380731945_0.5440383892930472","host":"s3://npm-registry-packages"}},"0.1.7-hardhat-error.0":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.7-hardhat-error.0","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.7-hardhat-error.0","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"b59e558ae7e6564823fccd06b1cb20aff42d6131","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.7-hardhat-error.0.tgz","fileCount":33,"integrity":"sha512-Ugzaa+kAc7Djf1xHa/tG7M/gyfSvqBdgUxlIAog7FnDyHnJjANK5HgUpNhDgg8XusgpgxoIost4NUuYKRABSjA==","signatures":[{"sig":"MEQCIGXfu+pxSc1SwnmEVKaRQTPvZBuCE8J802I48ZRub88CAiA4qmy1XaGrwsIP8ggPIBx4AKZXMFix42XmM9RaXlEKMw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBx8zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohkA/9EsK8Uo60xBBdTuebJeF611u912H41vfJ/IBOyAFMSP8Gzz0V\r\nB3DlX1KInk4A8akZqEiih7CdK/f4zXGgf/c865jOobvstV/mpdSPKkr80wlO\r\n8Ev1HY2tVF4wZeYXJW67WuXdMnO74kkqwx8n2ixd0/sq+Ym2GMANnCqTD0pn\r\nZA6o1gVL3i8T0VkpVzjDbQYg+85odYjVryOncnJe8nged78ZHATTGWSY8l5N\r\ng3sZCfF2o8Ot38WPf5ARld80G0ZPM1HhXRFRv68gN3JcfBI1PzchMSbeq1tF\r\nuRQMJdUEKHfLTqjLAbA6tuSk++IQq1QKrJ1k9U05wN6cz5f35F7Xt24dBJL/\r\nysKiynWUqiPwmicaNAcGSsuxh8a/72CKmo6grw7wmBtVqkQ++3qDyZupKdZd\r\np2Uv0M5Iy/c7VndavQnIjiKxJbR9N6uB8Qs/NtGNflnV89GHW6VHywaz7F3L\r\nKDWH8PCMNh9iASyjTnqS3UkqzmNUaaiu/lV5PCvLtuDsQ0OmRJyGOTtDtDez\r\no/GwLJsYAL+FHCd7oborbsIg0nl84gqu4xgkIRvvlE3S5PvMbWfzWFflcNLE\r\njwR9imFWeALZpS/ZBTDLDvm58LuKK3SFSKChGizRVAon5XqAg7F2ZH/8yBwh\r\n6Njdu0TZC7Bscp4q4RsK73Bshn93/FlB4ks=\r\n=i1/A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"# `@truffle/dashboard-message-bus-client`\n\nThis library is used for connecting with the message bus that powers the\nTruffle dashboard.\n\n## Usage\n\n### Connecting to the message bus and producing a message\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\nconst message = {\n  type: \"helloWorld\",\n  id: new DateTime().getTime(),\n  payload: {\n    hello: \"world\"\n  }\n};\n\nconst messageLifecycle = await client.publish(message);\n```\n\n#### The lifecycle of published messages\n\nPublishing a message creates a lifecycle for that message. The lifecycle is tracked by the publisher as an object of type `PublishedMessageLifecycle<MessageType, ResponseType>`.\n\nPublish message lifecycles terminate in one of three ways:\n\n1. Receipt of a corresponding response message\n2. Invalidation of the message\n3. Abandonment of the message\n\n##### Waiting for a response to a message\n\nTo enable request/response messaging (e.g. proxied JSON-RPC messages), publish\nlifecycles contain a promise that resolves when a response to the originally\npublished message is received.\n\n```ts\nconst response = await publishLifecycle.response;\n```\n\n##### Abandoning messages\n\nTo allow for fire-and-forget messages (e.g. event data), simply call the\n`abandon` method on the lifecycle object.\n\n**Important**: If the `abandon` method of the publish lifecycle is not called,\nthe process will hang forever on exit, as it will forever be waiting for a\nresponse that will never arive.\n\n```ts\nawait messageLifecycle.abandon();\n```\n\n##### Invalidating messages (aka message cancellation)\n\nThe consumer of a published message often will need to perform some longer\nrunning operation as a result of that message. To cancel that work, or to\ncommunicate to the consumer that the message is no longer valid, simply call\n`cancel` on the publish lifecycle.\n\n```ts\nawait messageLifecycle.invalidate();\n```\n\n### Consuming and responding to messages\n\nMessages can be consumed by calling the `subscribe` method of the client. The\n`subscribe` method returns a `DashboardMessageSubscription` object. This object\nemits `message` events whenever messages are received that match the\nsubscription's filter.\n\nReceived messages are wrapped up in a lifecycle object similar to the one used for publishing messages, however there's only a single `respond` method.\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\n// omitting the type string in the options object will return a subscription\n// for all messages\nconst subscription = client.subscribe({\n  type: \"helloWorld\"\n});\n\nsubscription.on(\"message\", receivedMessageLifecycle => {\n  const helloTarget = receivedMessageLifecycle.message.payload.hello;\n\n  if (helloTarget.toLowerCase() === \"world\") {\n    // respond by passing your response payload directly to the response\n    await receivedMessageLifecycle.respond({\n      someArbitraryResponse:\n        \"Why hello there. Pleased to make your acquaintance\"\n    });\n  } else {\n    await receivedMessageLifecycle.respond({\n      error: `I'm sorry, you have the wrong number. This is world, not \"${helloTarget}\"`\n    });\n  }\n});\n```\n","gitHead":"f1970ca2361849a1a7d7569d7ddc4db9657c8558","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"gnidan","email":"nick@gnidan.org"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/4.0.0/node@v14.20.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.20.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.3","@truffle/dashboard-message-bus-common":"^0.1.5-hardhat-error.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.7-hardhat-error.0_1661411123597_0.021218969929424514","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.7","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.7","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"62e71123eb2cc1e4dce0b1664a9455b3207c77da","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.7.tgz","fileCount":33,"integrity":"sha512-7F62gQl5K1MIwVk5+dO9FeHD4zblty0jfTjKBMsdDZEd4yazzS2n2QOzxnPsjxvthX1oPPLRxK+VrN9c/3+VTw==","signatures":[{"sig":"MEYCIQCDlzqz3kmqgOPkwuOL+tPuhUzq6FX/GOFRyihER3uyLAIhAJ0sbO+cFKfTR6LQC283rguLF+Glbjrqmx7a5Sw91805","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR0QaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYmA/9G/JULms0tPDmUAQrm8xj8oqPOEI1ZrYFZJGoML0NGeAB1dEQ\r\nYw5DRBNt8RAUYF25zxbEmmDotc5BicSrXt9g4R8+HhhsRniXRbTTTmPBNMtk\r\n1P+q0TfXG77IhusRMSGq50/lNUmIBCzOzstbA8CIuDLl5ElTevJiix1u4NL+\r\ndhFK1KjLSiVlgcDL6RsWmsMfNaWHS4AdMuHR9WO8LS8Pl6iibK/sJ3pQzstx\r\nrjrrdw3rCy74en23WqzSvkb9OGVFM5YSMhDBuREaGnJVcYBxMW3Wipo+/rCf\r\npsUCBiptUy448g0BxrC7aihH/g3ux4l5HvtZgBv5DKnXmplqb8beaETlkBWM\r\nNRsHZvTA1C9GON7vD0MMKEVnLl16yZLq7leUMkabYHoXgSoknfZaUs+c0GYW\r\nZj8murucjacCrlMAOpuzP+8Wujrw1uHNPxHLGw2Gsr0X5cpZMXmZAYTzFYsT\r\nNnSXrf2zEt1jIgUuclqmqR98pbIqyRfzKruIkohaWXs07BB8cBmYvojq6Tet\r\nNqh0aByDI5qggdGgAMW6t8fqhih6DT5g61Nv8muZ+IaTz5jRueou+uciZcT9\r\nIVzth/Dr1I8T8Ir8I3dAQaDyxS5w4YENwYfFDu+o3GjCpgCGGQvnkGf2sJ/A\r\nxJ5548iOU0PAnIQE2MKWCmd+JD6OxBuLik8=\r\n=O/tl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a029d3e45cf1b65914645b5f8205dfb45592d56e","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"cliffoo","email":"cliffzhang08@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/5.6.2/node@v18.8.0+x64 (linux)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"18.8.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.4","@truffle/dashboard-message-bus-common":"^0.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.7_1665614873859_0.36752274259784357","host":"s3://npm-registry-packages"}},"0.1.8":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.8","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.8","maintainers":[{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"kevinweaver","email":"kevinweaver2@gmail.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"ead8b5b2f57d2f29c6ac1ffce1944e247d52e4f7","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.8.tgz","fileCount":33,"integrity":"sha512-GjCk7iOEMmhRk+h1p558dcGauyqxK2NTCJSizyqQFmYw7NCOU4F2Rqgs3SDBMrksK3BcLuND1TNFzaBs6xYMxA==","signatures":[{"sig":"MEYCIQDxPSU6PhDlWqEbZ/tQIlHfoIuX54BUCIKrC/yrEQJkGgIhAMfhtmBw35sh3+/OqdhCItJEfYPSzvbhsvmkxs4HRBqk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWZRmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvkQ/+I+Dswl3UsEH8+R/hLAqJQi9zjiKS9cl8ZU3XdF9G36+dZTIm\r\nJhrSfcFJDA7kAK0vVWLN2k9PUkdiO5Xk5lxOf1+J5F2rOkRP2gMmp5o5k6Dk\r\nYegCf7mxuv6V2sCFiEnnuPSukAyCzHEfsJC7UBo/RA66Z7HYSqBeSZJpTOt7\r\nnOIJUK565Pat4ecvXt8l3KSIz7g+8SYMJuzRezAYD1gWTXo88esaPgTxML+Q\r\nEu85nLxGmziFGNIUjmwTevV2oZPLVrJCgbwMPMUkGSBztGL/ibRFb1g9ykXu\r\nE34cLlWDSU+p5TFuepYTo526QT2Rk7wwYd1Dn9Jq9IwO0VVaZF8EmNZ7yxvc\r\n1VAU0qGU+a7stFov8aMcZy5cjldoe1JsjvqMfrjjOMgmWQc+shae8PWFheBm\r\nsPucDSRAo9GbgHl8RIGI9+2Z+CBspRVsu44/mDeCHpzAOB2bRAS+zs5CunXH\r\nQYXYw5DJ5wFM3R3Eh6HO6mg3m5ZLC7SnCya0BB57vCMb/iVey8ZjVVrqjgg6\r\njuwTKraw6eS3TjDF0I+ssV3HtS07r5nPEKWqgKuWlPaWFkitcwtg16gU4AoE\r\nokH0uCPq9waed/vybeySCKxCOBKZQdoQV+L6gzGJ+sCtOnVIT6W6qNGrTY0n\r\nkjxFXMERQuMv3fWeyj2z8yroPhspfnqlrxU=\r\n=9pqQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d1e3f2d050bbced6e7c65e8779702b6b5a9b7c29","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/5.6.2/node@v16.18.0+arm64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.18.0","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.5","@truffle/dashboard-message-bus-common":"^0.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.8_1666815078353_0.4659859108663478","host":"s3://npm-registry-packages"}},"0.1.9":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.9","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.9","maintainers":[{"name":"dongming.hwang","email":"dongming.hwang@consensys.net"},{"name":"sukanyaparashar","email":"sukanyaparashar111@gmail.com"},{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"benjamincburns","email":"benjamin.c.burns@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"tenthirtyone","email":"ASherbuck@gmail.com"},{"name":"lsqproduction","email":"ll@trufflesuite.com"},{"name":"leeftk","email":"leandro.faria@consensys.net"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"082ecac0d85c43fd8f0ac8cf556f0d993bd4597d","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.9.tgz","fileCount":33,"integrity":"sha512-5tzPkMMkjSrD5POt3odHKTMBCAe2pPNsWi19BtFd4vASLwvqWVd0B2oIjQLqMLe/fSDPnpCmMwb5OK0FR/IzAA==","signatures":[{"sig":"MEUCICYYvdvAatqwDH8KilSJ+gfNNCa5UPhtx6zaWeKp9HlJAiEAorEj5Wr8Vz1zdH8U1AMZIJ0/mxZ+DsRS+INbN0HNJwU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfrCVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoi5BAAgZ/Cj9TRZZYkWorwqP3PBRv03XHK9n+3aO68SszkmgqxJLxc\r\naBMpCh5eYmzMMqBfW2HyncKF9ZPg6eeaUpzXfZK+yIbkqYI0sv26F2nI6oQ+\r\n9+6GWZGXcwWBdsc7Mw2/nC08v/9ld84LhYYPSa3eS9h6XrJsRVjMN5nQX/yX\r\n/zpmuwSET/dfxzNS9844fs/euFnF9o4ILIsW0tvqJPAa63s7NZnG2uDHppuC\r\ntuX582IindlFUUdv9W71bV8+ON76qRdmE5ylyXHhKqz4Jx05fliJDjOoSl6v\r\nhiOyKAiLyopgvn/Yd2MkMoxjs4kvuoEvZCGKgODF8E+QA3c3gsWRQ2kIOtTl\r\ns2JGjpZuHro7oKdc4XoMOth8B2jZ69ggKsV+LE0+EVcbB49MvKF7fnb8GgZJ\r\nfGsUBqnws8b7GHKdX0eqw2GDGcpe5i71fF50r3oLX4SNH7sg3wewqSKFmLSq\r\nOW+FvWVst310mJ4eul1HQ7Jwv7HIwUPV4BqywWQv+JTZpnaE4IpTbS2GjM0r\r\nOCY+T2xmwsjY1FHgD4h5pytXLvyjLdNRvPbIFEvbYoZ6ozL8VQBnSuMIe6en\r\ntFjmGKQslBfFEXaUYLk2SYy7jUS6GoJ9HDZIUfB6thl9QadztafxHzHrk8o4\r\nceIcg1qUHnpAzYoZFymwzM4qt+V5Q3s6tcs=\r\n=hYg3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"94dda0c2a75fda1ace35ab0009856699e2e06ede","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"cliffoo","email":"cliffzhang08@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/5.6.2/node@v18.12.1+x64 (linux)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"18.12.1","dependencies":{"ws":"^7.2.0","axios":"0.27.2","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.5","@truffle/dashboard-message-bus-common":"^0.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.9_1669247125089_0.7568085650846101","host":"s3://npm-registry-packages"}},"0.1.10":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.10","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.10","maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"bd1cef19956f06716d55a327b8ea6f983e41f0b0","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.10.tgz","fileCount":33,"integrity":"sha512-r9GpdR96T8xzk2Z3Qq5lowixT6hQwDZ9F3D3oNjOv2AOwBrC7dGkt1Ra1FQRsABn4K7LUVvnjjn6rALlsatAdw==","signatures":[{"sig":"MEUCIGgE6Wam7v3n7/Xw9/OEG7ptTU2m7P/bHijmTAje83ftAiEAiA4C3W3+v0U76iK/pDEEDmqoL/AECYi3lQMkt2uyMbc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0xj9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzgA/8C2itA34GDwlj2RmfocUMR9m4dElbugMqf1VsRPide08nDnSo\r\niFlMz6TVlYvg9o0f+vBMLqETkV64+CkvbZpxakmm5zMIRnpfzbwG6UxmgPZk\r\nsZHZF3HmiiFbzycAqI/BDm2SUigKgc58BHH7OyDbwwY0iUxFujjxmiFHuxqQ\r\n6D8GhTHwlBHI5GaG+Dj2xcEakFIdRqMg3SP5NRPJDiQ8pPOspgAvmnLhf3uH\r\nH4u52eq1rMtNVxWOm2IQQmVEHXiROZdBUXqqW8P+j7YBOG5D2ch4Y8h+Jlpv\r\nav7BGOhSReqvq+pnP03DcB4LhdB5JyEKpaaj+1ke5KAyrnu+x8SppRjmqdUx\r\nxaqgvUkIYJ9LccEHto/eiAd4d0kOCkftLdiD7rmX1mk51imPd0+G7CR+QFqq\r\nRU3Ca2SDMkFeOeSj7EwfO3WGmZlt5Uu6pMPcQnB3M3V8i+OcO1gKxJbSyHIv\r\nbplNQhJRKxv2znyJ1kuIqTOqpBeddPViE4L3KHShIk+Gnjgc/dm4OSnfpJ5g\r\nkPAoN1xt8SMR+FwFPjhKeptNvwusIahfmJh0hmjcKhQ09aulTD52shDbo8/r\r\nk6ThAwfCGxm/Evp8zSEOQxa7a4h6Bv55GnEnd87nE5lcjDIczn/kWT9zl5E2\r\nrRWXOTyU8r2PEcKgoetptTORtf+DT4EfhDs=\r\n=TDNE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"dbefdcbacbe19f976aa48303d9fdd5330aadfab2","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"haltman","email":"harry.j.altman@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/5.6.2/node@v14.20.1+x64 (linux)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.20.1","dependencies":{"ws":"^7.2.0","axios":"1.2.4","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.5","@truffle/dashboard-message-bus-common":"^0.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.7.4","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.10_1674778877453_0.6306533260107943","host":"s3://npm-registry-packages"}},"0.1.11":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.11","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.11","maintainers":[{"name":"cliffoo","email":"cliffzhang08@gmail.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"62870fb5bf08f2887f3dc94ad3d3283314ce7ad4","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.11.tgz","fileCount":33,"integrity":"sha512-ABoKtaogh5KjOw0UM5/6wYuhg4T5cMPVSSNF1rv4j3s2XGzExx3vUObvXqNO6I8gZ8xuvzClw4RmcEk8JkM8yA==","signatures":[{"sig":"MEYCIQCP7giKCAiYewNIOD6EYoc10skeyT+FRk5XJlcj+SLZMwIhAOIRXhy/6PQPuk7/vi8th/EwriLgFi86ds0MUIJSgNj/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57361},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7983a54d1f931d770c6fbb028bc27cdbcf5dfcbe","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"eggplantzzz","email":"pobol234@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/5.6.2/node@v14.21.2+x64 (darwin)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"14.21.2","dependencies":{"ws":"^7.2.0","axios":"1.2.4","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.6","@truffle/dashboard-message-bus-common":"^0.1.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.5","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.11_1686083093812_0.9571156150895095","host":"s3://npm-registry-packages"}},"0.1.12":{"name":"@truffle/dashboard-message-bus-client","version":"0.1.12","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"license":"MIT","_id":"@truffle/dashboard-message-bus-client@0.1.12","maintainers":[{"name":"rizedr","email":"it@consensys.net"},{"name":"joshuafernandes","email":"fernandes.joshua@gmail.com"},{"name":"cliffoo","email":"e2is2uyz@duck.com"},{"name":"kevinbluer","email":"kevin@bluer.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"haltman","email":"harry.j.altman@gmail.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"cds-amal","email":"cds.sudama@gmail.com"}],"homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"dist":{"shasum":"160bf0ae888efee8a45425232d296630f83fe6af","tarball":"https://registry.npmjs.org/@truffle/dashboard-message-bus-client/-/dashboard-message-bus-client-0.1.12.tgz","fileCount":33,"integrity":"sha512-pI9G0La9tTstb2J2wxUZIMx6H+ZF0XBlsGN3HBkffr4edT0oT12WMCK9GxmKE22Q5VnpXl7wGjatRSEx0C9qDQ==","signatures":[{"sig":"MEYCIQDOMGoOw+PYLCgEX00GdAYrxwbq6sPqEzUCKTQy0czFYAIhAJzGsb7YyBpQOODlusSzO/8yWqYZPebIyFmnEAmR7bD9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57420},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":"^16.20 || ^18.16 || >=20"},"gitHead":"033fc64fcdf91ceef61100938d7ffbd53b63eee5","scripts":{"build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"haltman","email":"harry.j.altman@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"_npmVersion":"lerna/5.6.2/node@v16.20.2+x64 (linux)","description":"Client library for accessing the truffle dashboard's message bus","directories":{"lib":"lib"},"_nodeVersion":"16.20.2","dependencies":{"ws":"^7.2.0","axios":"1.5.0","debug":"^4.3.1","delay":"^5.0.0","isomorphic-ws":"^4.0.1","tiny-typed-emitter":"^2.1.0","node-abort-controller":"^3.0.1","@truffle/promise-tracker":"^0.1.7","@truffle/dashboard-message-bus-common":"^0.1.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.9.5","@types/node":"~12.12.0","@types/debug":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/dashboard-message-bus-client_0.1.12_1694116182970_0.11092966048928043","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-06-23T15:17:48.392Z","modified":"2026-04-29T21:46:23.852Z","0.1.0-alpha.0":"2022-06-23T15:17:48.690Z","0.1.0":"2022-06-23T20:45:50.393Z","0.1.0-alpha.2":"2022-06-24T16:11:43.832Z","0.1.1":"2022-07-01T21:02:05.754Z","0.1.2":"2022-07-15T20:50:52.534Z","0.1.3-typescript-migrations.0":"2022-07-21T02:40:16.380Z","0.1.3":"2022-07-21T23:31:55.038Z","0.1.4":"2022-08-10T22:22:58.774Z","0.1.5":"2022-08-17T23:40:19.206Z","0.1.6-hardhat-error.0":"2022-08-20T00:39:05.999Z","0.1.6-hardhat-error.1":"2022-08-22T21:41:52.850Z","0.1.6":"2022-08-24T22:38:52.155Z","0.1.7-hardhat-error.0":"2022-08-25T07:05:23.882Z","0.1.7":"2022-10-12T22:47:54.075Z","0.1.8":"2022-10-26T20:11:18.536Z","0.1.9":"2022-11-23T23:45:25.303Z","0.1.10":"2023-01-27T00:21:17.610Z","0.1.11":"2023-06-06T20:24:53.976Z","0.1.12":"2023-09-07T19:49:43.222Z"},"bugs":{"url":"https://github.com/trufflesuite/truffle/issues"},"license":"MIT","homepage":"https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-client#readme","keywords":["ethereum","etherscan","ipfs","solidity","verify-source","sourcify","compile"],"repository":{"url":"git+https://github.com/trufflesuite/truffle.git","type":"git","directory":"packages/dashboard-message-bus-client"},"description":"Client library for accessing the truffle dashboard's message bus","maintainers":[{"email":"it@consensys.net","name":"rizedr"}],"readme":"# `@truffle/dashboard-message-bus-client`\n\nThis library is used for connecting with the message bus that powers the\nTruffle dashboard.\n\n## Usage\n\n### Connecting to the message bus and producing a message\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\nconst message = {\n  type: \"helloWorld\",\n  id: new DateTime().getTime(),\n  payload: {\n    hello: \"world\"\n  }\n};\n\nconst messageLifecycle = await client.publish(message);\n```\n\n#### The lifecycle of published messages\n\nPublishing a message creates a lifecycle for that message. The lifecycle is tracked by the publisher as an object of type `PublishedMessageLifecycle<MessageType, ResponseType>`.\n\nPublish message lifecycles terminate in one of three ways:\n\n1. Receipt of a corresponding response message\n2. Invalidation of the message\n3. Abandonment of the message\n\n##### Waiting for a response to a message\n\nTo enable request/response messaging (e.g. proxied JSON-RPC messages), publish\nlifecycles contain a promise that resolves when a response to the originally\npublished message is received.\n\n```ts\nconst response = await publishLifecycle.response;\n```\n\n##### Abandoning messages\n\nTo allow for fire-and-forget messages (e.g. event data), simply call the\n`abandon` method on the lifecycle object.\n\n**Important**: If the `abandon` method of the publish lifecycle is not called,\nthe process will hang forever on exit, as it will forever be waiting for a\nresponse that will never arive.\n\n```ts\nawait messageLifecycle.abandon();\n```\n\n##### Invalidating messages (aka message cancellation)\n\nThe consumer of a published message often will need to perform some longer\nrunning operation as a result of that message. To cancel that work, or to\ncommunicate to the consumer that the message is no longer valid, simply call\n`cancel` on the publish lifecycle.\n\n```ts\nawait messageLifecycle.invalidate();\n```\n\n### Consuming and responding to messages\n\nMessages can be consumed by calling the `subscribe` method of the client. The\n`subscribe` method returns a `DashboardMessageSubscription` object. This object\nemits `message` events whenever messages are received that match the\nsubscription's filter.\n\nReceived messages are wrapped up in a lifecycle object similar to the one used for publishing messages, however there's only a single `respond` method.\n\n```ts\nimport { DashboardMessageBusClient } from \"@truffle/dashboard-message-bus-client\";\n\nconst client = new DashboardMessageBusClient({ port, host });\n\n// omitting the type string in the options object will return a subscription\n// for all messages\nconst subscription = client.subscribe({\n  type: \"helloWorld\"\n});\n\nsubscription.on(\"message\", receivedMessageLifecycle => {\n  const helloTarget = receivedMessageLifecycle.message.payload.hello;\n\n  if (helloTarget.toLowerCase() === \"world\") {\n    // respond by passing your response payload directly to the response\n    await receivedMessageLifecycle.respond({\n      someArbitraryResponse:\n        \"Why hello there. Pleased to make your acquaintance\"\n    });\n  } else {\n    await receivedMessageLifecycle.respond({\n      error: `I'm sorry, you have the wrong number. This is world, not \"${helloTarget}\"`\n    });\n  }\n});\n```\n","readmeFilename":"README.md"}