subscribe method

Stream<FetchResult> subscribe (
  1. Operation operation
)

This subscribes to a GraphQL subscription according to the options specified and returns a Stream which either emits received data or an error.

Implementation

Stream<FetchResult> subscribe(Operation operation) {
  return execute(link: link, operation: operation);
}