We are currently listening to the disconnect event so we get the code&reason for a disconnect. More specifically we want to know when an invalid_auth error happened.
Though this is impossible to test as rtm.send method does not allow for a callback containing two parameters. Disconnect event returns code and reason.
We are currently listening to the disconnect event so we get the code&reason for a disconnect. More specifically we want to know when an
invalid_auth
error happened.Though this is impossible to test as
rtm.send
method does not allow for a callback containing two parameters.Disconnect
event returnscode
andreason
.