nostr package: use EventEmitter #384

Merged
sistemd merged 5 commits from nostr-package-event-emitter-api into main 2023-03-08 20:29:39 +00:00
sistemd commented 2023-03-02 20:23:14 +00:00 (Migrated from github.com)

Implement the EventEmitter API for the nostr package. This makes the Nostr client compatible with how node handles events, and still usable in the browser thanks to the isomorphic events package. Update the error event to handle all types of errors, not just protocol errors.

Implement the [`EventEmitter`](https://nodejs.org/api/events.html) API for the `nostr` package. This makes the `Nostr` client compatible with how node handles events, and still usable in the browser thanks to the [isomorphic events package](https://www.npmjs.com/package/events). Update the `error` event to handle all types of errors, not just protocol errors.
cloudflare-pages[bot] commented 2023-03-02 20:25:33 +00:00 (Migrated from github.com)

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a34e696
Status:   Deploy successful!
Preview URL: https://4e63d21c.snort-social.pages.dev
Branch Preview URL: https://nostr-package-event-emitter-.snort-social.pages.dev

View logs

## Deploying with &nbsp;<a href="https://pages.dev"><img alt="Cloudflare Pages" src="https://user-images.githubusercontent.com/23264/106598434-9e719e00-654f-11eb-9e59-6167043cfa01.png" width="16"></a> &nbsp;Cloudflare Pages <table><tr><td><strong>Latest commit:</strong> </td><td> <code>a34e696</code> </td></tr> <tr><td><strong>Status:</strong></td><td>&nbsp;✅&nbsp; Deploy successful!</td></tr> <tr><td><strong>Preview URL:</strong></td><td> <a href='https://4e63d21c.snort-social.pages.dev'>https://4e63d21c.snort-social.pages.dev</a> </td></tr> <tr><td><strong>Branch Preview URL:</strong></td><td> <a href='https://nostr-package-event-emitter-.snort-social.pages.dev'>https://nostr-package-event-emitter-.snort-social.pages.dev</a> </td></tr> </table> [View logs](https://dash.cloudflare.com/?to=/:account/pages/view/snort-social/4e63d21c-309a-468c-9ed8-b908f125f6d8)
v0l (Migrated from github.com) approved these changes 2023-03-07 12:05:29 +00:00
Sign in to join this conversation.
No description provided.