Skellington-Closet / slack-mock

A Slack API mocker for Slack bot integration tests.
MIT License
64 stars 15 forks source link

CLIENT_EVENTS.RTM.DISCONNECT not supported #24

Open sarabsilveira opened 6 years ago

sarabsilveira commented 6 years ago

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.

colestrode commented 6 years ago

What does the disconnect payload look like? Is it JSON?