MCPcopy
hub / github.com/slackapi/python-slack-sdk / close

Method close

slack_sdk/rtm_v2/__init__.py:259–266  ·  view source on GitHub ↗

Closes this instance and cleans up underlying resources. After calling this method, this instance is no longer usable.

(self)

Source from the content-addressed store, hash-verified

257 self.current_session.disconnect()
258
259 def close(self) -> None:
260 """
261 Closes this instance and cleans up underlying resources.
262 After calling this method, this instance is no longer usable.
263 """
264 self.closed = True
265 self.disconnect()
266 self.current_session.close()
267
268 def start(self) -> None:
269 """Establishes an RTM connection and blocks the current thread."""

Callers 15

_handleMethod · 0.45
on_shutdownMethod · 0.45
_handleMethod · 0.45
_handleMethod · 0.45
test_instanceMethod · 0.45
do_GETMethod · 0.45
run_serverFunction · 0.45
_handleMethod · 0.45
do_CONNECTMethod · 0.45
_handleMethod · 0.45

Calls 1

disconnectMethod · 0.95

Tested by 6

on_shutdownMethod · 0.36
_handleMethod · 0.36
test_instanceMethod · 0.36
_handleMethod · 0.36