# Where is the doc page that tells the available events I can register in the server part of a node?

**URL:** <https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588>\
**Category:** Developing Nodes\
**Created:** [31 August 2024 22:40 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588 "2024-08-31T22:40:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AllanOricil](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/allanoricil/32/106911_2.png) [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Post date:** [31 August 2024 22:40 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588/1 "2024-08-31T22:40:01Z")

</div>

This is a continuation of [Are there any more events than "input" and "close"?](https://discourse.nodered.org/t/are-there-any-more-events-than-input-and-close/32835)

In the whole thread, there are many mentions saying "the doc is complete". However, there is no link to this exactly page where it says all possible events. So, please, can you share the link? I could not. I'm not sure if "input" and "close" are still the only ones.

Moreover, this is a feedback as a developer. I spent quite some time reading the docs and could not find this page. I also could not find it indexed in google, event searching a simple query like `node-red event handlers`.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [31 August 2024 22:51 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588/2 "2024-08-31T22:51:29Z")

</div>

The docs for the server side of a node are here: [JavaScript file : Node-RED](https://nodered.org/docs/creating-nodes/node-js)

---

<div class="post-metadata">

**Author:** ![AllanOricil](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/allanoricil/32/106911_2.png) [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Post date:** [31 August 2024 23:27 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588/3 "2024-08-31T23:27:20Z")

</div>

Thanks! I read that page. However, I was still not 100% sure if `input` and `close` were really the only events available. I questioned it because of the way event handlers are registered. To register an event handler, we have to use `this.on(EVENT_NAME, HANDLER)`, and because the first parameter is a string, it made me believe I could register other events that are not listed, and then trigger those handlers somehow. It would be nice to make it clear that we can't use other strings other than "input" and "close" with `this.on`.

So, even if I'm able to call `this.on("BANANA", onBananaHandler(){})` it means I won't ever be able to trigger `onBananaHandler` right?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 September 2024 06:36 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588/4 "2024-09-01T06:36:54Z")

</div>

… only if also you edit/hack the core of Node-RED to emit the BANANA event at some point

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 September 2024 06:37 UTC](https://discourse.nodered.org/t/where-is-the-doc-page-that-tells-the-available-events-i-can-register-in-the-server-part-of-a-node/90588/5 "2024-09-15T06:37:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
