-
Notifications
You must be signed in to change notification settings - Fork 1
FAQ
Eric M. Dantas edited this page Aug 19, 2016
·
2 revisions
Nope, you can use any type of data you want. Boolean, String, Object, even functions!
As of right now, it's the same object, there's no cloning involved.
Yes, there'll be times where only notifying will be enough, there's no need to pass null
, undefined
or {}
just to fullfil the contract and make things work.
I mean, you can, we've got a bunch of different builds (check the dist
folder) to help you do that, but since Node already has the EventEmitter
which has a pretty straight forward API too, you should stick to that.
See https://nodejs.org/api/events.html#events_class_eventemitter for more info.