Skip to main content

Connection

ib_interface.api.connection

Event-driven socket connection.

Connection

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.

reset

def reset()

connectAsync

def connectAsync(host, port)

disconnect

def disconnect()

isConnected

def isConnected()

sendMsg

def sendMsg(msg)

connection_lost

def connection_lost(exc)

data_received

def data_received(data)