From 398ad28a2d15b03c9ced5bdd14adb4cc88a2f78d Mon Sep 17 00:00:00 2001 From: atomiks Date: Sat, 6 Jan 2018 07:42:11 +1100 Subject: [PATCH] Update createEventHub.md --- snippets/createEventHub.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/createEventHub.md b/snippets/createEventHub.md index 66c718bc7..c0530a7bd 100644 --- a/snippets/createEventHub.md +++ b/snippets/createEventHub.md @@ -1,6 +1,6 @@ ### createEventHub -Creates a pubsub event hub with `emit`, `on`, and `off` methods. +Creates a pub/sub ([publish–subscribe](https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern)) event hub with `emit`, `on`, and `off` methods. For `emit`, resolve the array of handlers based on the `event` argument and then run each one with `Array.forEach()` by passing in the data as an argument.