abstract fun createHandler(sender: Consumer<Bytes>, terminationFunction: Runnable): T
(source)
Creates a new handler associated with a valid streaming connection.
sender
- the function to send bytes to the server
terminationFunction
- a function to terminate the stream properly
Return
the created ClientHandler