Fixed hexDump function. Added getChannel function to Connection object to retrieve a previously closed channel. Removed "deferring closing connection" log message.
Fixed logic detecting when data is for a channel or a connection. Fixed when all responses after the first query response contain a rogue field. Single response queries now work properly field name for value is "res". (EG: /ip/address/print =count-only=yes) Added experimental hexDump feature for debugging.
errors property needed to be an object, not array. fixed calling close on incorrect object in sentence function while processing a fatal response. Fixed trap handling code to make sure the channel is still open when emitting a trap event on a channel. Fixed trap handling code when logging in. Trap now emitted properly. Fixed null callback error in channel write. Now, write callbacks are not required. It will be sent, and all respnose data ignored. Unless there is a prior event to handle the data, and clearEvents is false. Added clearEvents property/getter/setter to channel. Normally, when a channel emits a done event, all done, data, and trap events are cleared. If this property is set to false, then this does not happen.
This follows the normal stream reader model.
…ose the socket.