# Searching for the API entries for the function this.on('close', ....) and this.on('input', ....)

**URL:** <https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898>\
**Category:** Developing Nodes\
**Created:** [2 June 2023 11:59 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898 "2023-06-02T11:59:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FredEdison](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@FredEdison](https://discourse.nodered.org/u/FredEdison)\
**Post date:** [2 June 2023 11:59 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898/1 "2023-06-02T11:59:51Z")

</div>

Hi,

may be I searched wrong but I am searching for the API which describes me for example this.on('input', ....), this.on('close', ....) and the other possibilites.  
I am developing a custom node and it's works fine. For example I am using the this.on('input', function(msg, send, done){...}) because I saw it in the examples, also I found this.on('close', function(msg){...}) anywhere in the forum but I want an overview of the other possibilities but I have no starting point I am not be able to find 'input', 'close' anywhere in den API.

Can somebody give me a hint for a good search expression please?

1. Update:  
I have took a look to core/storage/23-watch.js and there are also 'change' and 'error'.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 June 2023 12:48 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898/2 "2023-06-02T12:48:24Z")

</div>

The docs?  
[https://nodered.org/docs/creating-nodes/](https://nodered.org/docs/creating-nodes/)

---

<div class="post-metadata">

**Author:** ![FredEdison](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@FredEdison](https://discourse.nodered.org/u/FredEdison)\
**Post date:** [2 June 2023 13:01 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898/3 "2023-06-02T13:01:02Z")

</div>

Thank you for the answer.

Yes, there are 'input', 'close' but in my first update I also found 'change' and 'error'. May be it's a misunderstanding on my site but it's seems to me there are more events that you can use.

Another point is the "flows:started" runtime event from @node-red/runtime/lib/flows/index.js . It's not documented in [RED.events : Node-RED](https://nodered.org/docs/api/ui/events/) . I found this hint anywhere in the forum and currently I am not sure if I use the correct documentation or the information intentionally hidden for the common developer.

I have the feeling that certain something is missing to feel me save. 😉

---

<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:** [2 June 2023 15:52 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898/4 "2023-06-02T15:52:11Z")

</div>

The docs you've linked to are for the events available within the editor.

We do not have a publicly documented set of runtime events beyond what is in the Creating Nodes docs.

Getting a more formalized set of runtime events is on the to-do list

---

<div class="post-metadata">

**Author:** ![FredEdison](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@FredEdison](https://discourse.nodered.org/u/FredEdison)\
**Post date:** [2 June 2023 16:13 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898/5 "2023-06-02T16:13:49Z")

</div>

Thank you for the answer!

In the last months the self doubts grew up that I missed something because I am completly new in Node-RED, but this explains it to me.

Does it make sense to collect such findings/events for later usage at a central point for other developers and to make it easier to fulfill the to do? The big exclamation mark shouldn't be absent for using it on own risk. 😉

---

<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:** [1 August 2023 16:14 UTC](https://discourse.nodered.org/t/searching-for-the-api-entries-for-the-function-this-on-close-and-this-on-input/78898/6 "2023-08-01T16:14:27Z")

</div>

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