* Adds the listener function to the end of the listeners array for the event. * No checks are made to see if the listener has already been added. Multiple calls passing * the same combination of event and listener will result in the listener being added, and * called, multiple times. * @
(event, listener)
| 70303 | } |
| 70304 | /** |
| 70305 | * Adds the listener function to the end of the listeners array for the event. |
| 70306 | * No checks are made to see if the listener has already been added. Multiple calls passing |
| 70307 | * the same combination of event and listener will result in the listener being added, and |
| 70308 | * called, multiple times. |
| 70309 | * @returns this MessageStream, so that calls can be chained |
| 70310 | */ |
| 70311 | on(event, listener) { |
| 70312 | const listeners = __classPrivateFieldGet7(this, _MessageStream_listeners, "f")[event] || (__classPrivateFieldGet7(this, _MessageStream_listeners, "f")[event] = []); |
no test coverage detected