class_docstr: A class for handling connections and interactions with the Rocket Chat API.
  
  Attributes:
      username (str): Rocket Chat username to use for authentication.
      password (str): Rocket Chat username to use for authentication.
      auth_token (str): Rocket Chat authorization token to use for all API requests.
      auth_user_id (str): Rocket Chat user ID to associate with all API requests
      domain (str): Path to Rocket Chat domain to use (e.g. https://mindsdb.rocket.chat).
      client (RocketChatClient): The `RocketChatClient` object for interacting with the Rocket Chat API.
      is_connected (bool): Whether or not the API client is connected to the Rocket Chat API.
class_docstr_tok: ["A","class","for","handling","connections","and","interactions","with","the","Rocket","Chat","API",".","Attributes",":","username","(","str",")",":","Rocket","Chat","username","to","use","for","authentication",".","password","(","str",")",":","Rocket","Chat","username","to","use","for","authentication",".","auth_token","(","str",")",":","Rocket","Chat","authorization","token","to","use","for","all","API","requests",".","auth_user_id","(","str",")",":","Rocket","Chat","user","ID","to","associate","with","all","API","requests","domain","(","str",")",":","Path","to","Rocket","Chat","domain","to","use","(","e.g",".","https",":","\/\/mindsdb.rocket.chat",")",".","client","(","RocketChatClient",")",":","The","`","RocketChatClient","`","object","for","interacting","with","the","Rocket","Chat","API",".","is_connected","(","bool",")",":","Whether","or","not","the","API","client","is","connected","to","the","Rocket","Chat","API","."]
docstr: Creates a new Rocket Chat API client if needed and sets it as the client to use for requests.
  
  Returns newly created Rocket Chat API client, or current client if already set.
docstr_tok: ["Creates","a","new","Rocket","Chat","API","client","if","needed","and","sets","it","as","the","client","to","use","for","requests",".","Returns","newly","created","Rocket","Chat","API","client",",","or","current","client","if","already","set","."]
code: def connect(self):
      """Creates a new Rocket Chat API client if needed and sets it as the client to use for requests.
  
      Returns newly created Rocket Chat API client, or current client if already set.
      """
      if self.is_connected and self.client is not None:
          return self.client
  
      self.client = RocketChat(
          user=self.username,
          password=self.password,
          auth_token=self.auth_token,
          user_id=self.auth_user_id,
          server_url=self.domain,
      )
  
      self.is_connected = True
      return self.client
  
file_path: mindsdb/mindsdb/integrations/handlers/rocket_chat_handler/rocket_chat_handler.py
imports: import pandas
  from typing import Dict, List
  from rocketchat_API.rocketchat import RocketChat
  from mindsdb.integrations.handlers.rocket_chat_handler.rocket_chat_tables import ChannelMessagesTable, ChannelsTable, DirectsTable, DirectMessagesTable, UsersTable
  from mindsdb.integrations.libs.api_handler import APIChatHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 4 for calling the RocketChatHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self