tuweni / org.apache.tuweni.scuttlebutt.handshake.vertx / ClientHandler

ClientHandler

interface ClientHandler (source)

Handler managing a stream over SecureScuttlebutt originating from the Vert.x client

Functions

receivedMessage

abstract fun receivedMessage(message: Bytes): Unit

This method is called by the client when a new message arrives from the server.

streamClosed

abstract fun streamClosed(): Unit

Notifies the handler the stream is no longer active.

Inheritors

RPCHandler

open class RPCHandler : Multiplexer, ClientHandler

Handles RPC requests and responses from an active connection to a scuttlebutt node.