Question: Is data() method in MessageHandler called only ONCE?
bcastellucci opened this issue · 2 comments
bcastellucci commented
Greetings, just a quick question - is the data() method (in MessageHandler) called only once?
From what I can tell it is, but I just wanted to be sure I'm not missing something.
I need to make a decision at the end of the message and the done() method seemed perfect but then after looking at the code I realized by then my opportunity to return an error to the client is gone, so I moved one method back to data().
This seems like the right spot but again, just wanted to double check.
Thanks!
davidmoten commented
Yes, just once.
bcastellucci commented
Perfect. Thanks again!