Closed NicolasMahe closed 4 years ago
Right now it's very hard to debug the whenEvent and whenResult.
whenEvent
whenResult
The solution is to make the parameter task of these previous function optional in order to use them like:
task
MESG.whenEvent(eventObject) .on('data', function(data) { // Debug mode })
The lib should detect this utilization and output in the warning log a message explaining that it should be use only for debug purpose, should not be used in production, and the developer should create a service instead with a link to the doc.
Related to https://github.com/mesg-foundation/mesg-js/issues/10
Right now it's very hard to debug the
whenEvent
andwhenResult
.The solution is to make the parameter
task
of these previous function optional in order to use them like:The lib should detect this utilization and output in the warning log a message explaining that it should be use only for debug purpose, should not be used in production, and the developer should create a service instead with a link to the doc.