ib_async.connection
Generated from the installed ib_async 2.1.0 package. Signatures and defaults are version-specific.
Event-driven socket connection.
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.
connectAsync
connectAsync(self, host, port)
No library docstring is provided; consult the signature, type fields, and operational guides.
connection_lost
connection_lost(self, exc)
Called when the connection is lost or closed.
The argument is an exception object or None (the latter meaning a regular EOF is received or the connection was aborted or closed).
data_received
data_received(self, data)
Called when some data is received.
The argument is a bytes object.
disconnect
disconnect(self)
No library docstring is provided; consult the signature, type fields, and operational guides.
isConnected
isConnected(self)
No library docstring is provided; consult the signature, type fields, and operational guides.
reset
reset(self)
No library docstring is provided; consult the signature, type fields, and operational guides.
sendMsg
sendMsg(self, msg)
No library docstring is provided; consult the signature, type fields, and operational guides.