This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Description
in smith.js Transport onDisconnect
self.emit("disconnect")
is not going to pass any sort of reason.
Maybe the function needs to have err as its first parameter and then self.emit("disconnect", err)
The problem is happening on a friends computer so I can't debug to prove it just yet but will try to get a working example later.
Thought I should raise issue just in case it is something that was neglected.
The documentation seems to say onDisconnect event would have a reason. But it is not always the case?.
See these lines.
https://github.com/c9/smith/blob/master/smith.js#L113-127