createWebSocketBloc method
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,
);
}