-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
My adapter needs connect websocket to the remote server. Currently, adapter does not support custom shutdown or disconnect method, so I must manually invoke shutdown method of my adapter after bot.shutdown.
Proposed Solution
- Add optional
disconnectmethod to Adapter interface - Invoke all the adapters
shutdownmethod in bot.shutdown
Alternatives Considered
No response
Use Case
// create bot
const bot = new Chat({ /* ... */ })
// do something
// shutdown
bot.shutdown()
// do not manually cleanup
// bot.getAdapter('...').disconnect()Priority
None
Contribution
- I am willing to help implement this feature
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request