Itiviti / simple-slack-api

(simple) Java Slack client library
470 stars 193 forks source link

Possible to make SlackWebSocketSessionImpl.addInternalListeners() optional? #270

Open waiyan1612 opened 5 years ago

waiyan1612 commented 5 years ago

We have a simple use case to send a slack message to a channel in case of exceptions. We have integrated with it but we realized it's also listening to events which it will never use. Is it possible to not listen/subscribe to those events?

From the code, there is no way to construct SlackWebSocketSessionImpl without invoking addInternalListeners. I am just wondering if we can disable this feature by not invoking addInternalListeners but I am not sure if doing this will break something else.