Skip to content

Commit

Permalink
Fix Typo
Browse files Browse the repository at this point in the history
Closes #7324
Replaces #7325
  • Loading branch information
danforbes committed Oct 17, 2024
1 parent cbae7c3 commit 1f71b68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In summary, the differences you need to be aware of when subscribing to blockcha
- It does not accept a callback function.
- It returns a subscription object that you can use to listen to `data` and `error` events.
- You should now use the `on`, or `once`, method on the newly returned subscription object to listen to `data` and `error` events, instead of passing a callback function directly.
- You can have multiple event listeners, if you have, for example multiple `on` calls. And you can get the number of listeners in you code by calling `listenerCount(event_name)` or get the listeners with `listeners(event_name)`.
- You can have multiple event listeners, if you have, for example multiple `on` calls. And you can get the number of listeners in your code by calling `listenerCount(event_name)` or get the listeners with `listeners(event_name)`.

Keep in mind that these differences apply to all blockchain event subscriptions, not just to the `newBlockHeaders` event.

Expand Down

0 comments on commit 1f71b68

Please sign in to comment.