Closes this instance and cleans up underlying resources. After calling this method, this instance is no longer usable.
(self)
| 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.""" |