createWebSocketBloc method

  1. @visibleForTesting
WebSocketBloc createWebSocketBloc(
  1. EndpointConfig endpoint
)
inherited

Returns the websocket bloc to use for a given endpoint.

Use endpoint if there are multiple endpoints.

Implementation

@visibleForTesting
WebSocketBloc createWebSocketBloc(EndpointConfig endpoint) {
  return WebSocketBloc(
    config: endpoint.config,
    authProviderRepo: _authProviderRepo,
    wsService: AmplifyWebSocketService(),
    subscriptionOptions: _options.subscriptionOptions,
    connectivity: _connectivity,
  );
}