Registers [handler] to be called for events of this stream.
public AsyncStreamResponse<T> subscribe(Handler<T> handler)Registers [handler] to be called for events of this stream. [handler]'s methods will be called in the client's configured or default thread pool.
IllegalStateException: if [subscribe] has already been called.| Name | Type | Description |
|---|---|---|
handler* | Handler<T> |