addChannel<HubEventPayload, E extends HubEvent<HubEventPayload>> abstract method

void addChannel<HubEventPayload, E extends HubEvent<HubEventPayload>>(
  1. HubChannel<HubEventPayload, E> channel,
  2. Stream<E> stream
)

Adds a Hub channel with the given stream.

This may be called multiple times with the same channel. The provided streams will be merged into a single stream.

Implementation

void addChannel<HubEventPayload, E extends HubEvent<HubEventPayload>>(
  HubChannel<HubEventPayload, E> channel,
  Stream<E> stream,
);