Skip to content

API documentation of Agoric SDK / Exports / @agoric/network / types / ConnectionHandler

Interface: ConnectionHandler

@agoric/network.types.ConnectionHandler

A handler for a given Connection

Table of contents

Properties

Properties

onClose

onClose: undefined | (connection: Remote<Connection>, reason?: any, c?: Remote<ConnectionHandler>) => PromiseVow<void>

The connection has been closed

Defined in

packages/network/src/types.js:113


onOpen

onOpen: undefined | (connection: Remote<Connection>, localAddr: string, remoteAddr: string, c: Remote<ConnectionHandler>) => PromiseVow<void>

The connection has been opened

Defined in

packages/network/src/types.js:100


onReceive

onReceive: undefined | (connection: Remote<Connection>, ack: string, c: Remote<ConnectionHandler>, opts?: Record<string, any>) => PromiseVow<string>

The connection received a packet

Defined in

packages/network/src/types.js:107