class_docstr: Event-driven socket connection.
  
  Events:
      * ``hasData`` (data: bytes):
        Emits the received socket data.
      * ``disconnected`` (msg: str):
        Is emitted on socket disconnect, with an error message in case
        of error, or an empty string in case of a normal disconnect.
code: def isConnected(self):
      return self.transport is not None
  
file_path: ib_insync/ib_insync/connection.py
imports: import asyncio
  from eventkit import Event
  from ib_insync.util import getLoop
label_desc: Use image node_id 4 for calling the Connection obj's underlying member method code with example usage: obj.isConnected() and returns: unknown