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