Skip to content

packages.fetchai.connections.stub.connection

This module contains the stub connection.

StubConnection Objects

class StubConnection(Connection)

__init__

 | __init__(**kwargs)

Initialize a stub connection.

read_envelopes

 | async read_envelopes() -> None

Read envelopes from inptut file, decode and put into in_queue.

receive

 | async receive(*args, **kwargs) -> Optional["Envelope"]

Receive an envelope.

connect

 | async connect() -> None

Set up the connection.

disconnect

 | async disconnect() -> None

Disconnect from the channel.

In this type of connection there's no channel to disconnect.

send

 | async send(envelope: Envelope) -> None

Send messages.

Returns:

None