pusher static method

LaravelEcho<PusherClient, PusherChannel> pusher(
  1. StorageDatabase storageDatabase,
  2. String appKey,
  3. List<LaravelEchoMigration> migrations, {
  4. required String authEndPoint,
  5. Map<String, String> authHeaders = const {'Content-Type' : 'application/json'},
  6. String? cluster,
  7. required String host,
  8. int wsPort = 80,
  9. int wssPort = 443,
  10. bool encrypted = true,
  11. int activityTimeout = 120000,
  12. int pongTimeout = 30000,
  13. int maxReconnectionAttempts = 6,
  14. int maxReconnectGapInSeconds = 30,
  15. bool enableLogging = true,
  16. bool autoConnect = true,
  17. String? nameSpace,
})
override

Init Echo with Pusher client

Implementation

static LaravelEcho<PusherClient, PusherChannel> pusher(
  StorageDatabase storageDatabase,
  String appKey,
  List<LaravelEchoMigration> migrations, {
  required String authEndPoint,
  Map<String, String> authHeaders = const {
    'Content-Type': 'application/json'
  },
  String? cluster,
  required String host,
  int wsPort = 80,
  int wssPort = 443,
  bool encrypted = true,
  int activityTimeout = 120000,
  int pongTimeout = 30000,
  int maxReconnectionAttempts = 6,
  int maxReconnectGapInSeconds = 30,
  bool enableLogging = true,
  bool autoConnect = true,
  String? nameSpace,
}) =>
    LaravelEcho<PusherClient, PusherChannel>(
      storageDatabase,
      PusherConnector(
        appKey,
        authEndPoint: authEndPoint,
        authHeaders: authHeaders,
        cluster: cluster,
        host: host,
        wsPort: wsPort,
        wssPort: wssPort,
        encrypted: encrypted,
        activityTimeout: activityTimeout,
        pongTimeout: pongTimeout,
        maxReconnectionAttempts: maxReconnectionAttempts,
        maxReconnectGapInSeconds: maxReconnectGapInSeconds,
        enableLogging: enableLogging,
        autoConnect: autoConnect,
        nameSpace: nameSpace,
      ),
      migrations,
    );