Disconnect
Disconnects from Slack and cleans up the client connection.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Client Id - The unique identifier for the Slack client connection obtained from the Connect node.
How It Works
The Disconnect node terminates a Slack connection and cleans up associated resources. When executed, the node:
- Retrieves the Client Id from the input
- Validates the Client Id by checking if a connection exists
- Cancels any ongoing operations for the connection
- Removes the connection from the internal connection map
Requirements
- A valid Slack client connection (Client Id from the Connect node)
Error Handling
The node will return specific errors in the following cases:
- Invalid Client Id that doesn't correspond to an existing connection
Usage Notes
- Use this node to properly clean up Slack connections at the end of a flow
- All resources associated with the connection will be released
- After disconnecting, the Client Id becomes invalid and cannot be used in other nodes
- It's good practice to disconnect when the Slack connection is no longer needed