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