tuweni / org.apache.tuweni.scuttlebutt.handshake.vertx / ServerHandlerFactory / createHandler

createHandler

abstract fun createHandler(sender: Consumer<Bytes>, terminationFunction: Runnable): ServerHandler (source)

Creates a new handler associated with a valid streaming connection.

Parameters

sender - the function to send bytes to the client

terminationFunction - a function to terminate the stream properly

Return
the ServerHandler