teleproto - v1.229.0
    Preparing search index...

    Class Connection

    Thin transport pipe: codec framing over one socket.

    There are deliberately no internal loops, queues or buffers here the sender owns exactly one reader and one writer, so send() and recv() talk to the codec and socket directly. Transport-level failures (including MTProto transport errors such as -404) propagate to the caller as thrown errors from these two methods.

    Index
    _connected: boolean
    _dcId: number
    _ip: string
    _keepAliveInterval?: number
    _log: Logger
    _port: number
    _proxy?: ProxyInterface
    _testServers?: boolean
    PacketCodecClass?: typeof PacketCodec