Skip to content

miniproto.connection.sender.MTProtoSender.connect

miniproto.connection.sender.MTProtoSender.connect

Section titled “miniproto.connection.sender.MTProtoSender.connect”
connect() -> None

Open the transport and start owned receive and keepalive tasks.

Concurrent calls serialize on a lock; a call made while already healthy is a no-op. A stored fatal receive-loop error is raised once and cleared before a new connection is attempted.

Raises:

  • BaseException – A remembered fatal receive-loop failure, or any error raised while opening the configured transport.