scuttlebutt-handshake / org.apache.tuweni.scuttlebutt.handshake.vertx / ServerHandler

ServerHandler

interface ServerHandler (source)

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

Functions

receivedMessage

abstract fun receivedMessage(message: Bytes): Unit

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

streamClosed

abstract fun streamClosed(): Unit

Notifies the handler the stream is no longer active.