I was missing nodebb directory in home
so just mkdir nodebb in home and sudo chown nodebb:nodebb nodebb/ does the job
SOLVED How to "emit" an event from the plugin with callback
I am trying to emit(event, payload, callback) from the plugin, but I am getting "Error: Callbacks are not supported when broadcasting". Without the callback the event does propagate.
From the client however, the emit with callback works without a problem.
Anyone knows the proper way to do this?
@jjsagan what context is this in?
You are broadcasting, sending to multiple sockets. So there is no callback.
The client only sends to one socket, the server, so you get a callback.
If you need to send data back to the server, then emit another event from the client.
You should give more details, there's probably a better way to do what you need.
Indeed its broadcast, thank you. Solved the problem from the client side and moved on. Thank you very very much!!!