pusher static method

LaravelEcho<PusherClient, PusherChannel<Channel>> 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. String? host,
  8. Map<String, dynamic> channelDecryption(
    1. Uint8List,
    2. Map<String, dynamic>
    )?,
  9. int wsPort = 80,
  10. int wssPort = 443,
  11. bool encrypted = true,
  12. int activityTimeout = 120000,
  13. int pongTimeout = 30000,
  14. int maxReconnectionAttempts = 6,
  15. Duration reconnectGap = const Duration(seconds: 2),
  16. bool enableLogging = true,
  17. bool autoConnect = true,
  18. 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,
  String? host,
  Map<String, dynamic> Function(Uint8List, Map<String, dynamic>)?
  channelDecryption,
  int wsPort = 80,
  int wssPort = 443,
  bool encrypted = true,
  int activityTimeout = 120000,
  int pongTimeout = 30000,
  int maxReconnectionAttempts = 6,
  Duration reconnectGap = const Duration(seconds: 2),
  bool enableLogging = true,
  bool autoConnect = true,
  String? nameSpace,
}) => LaravelEcho<PusherClient, PusherChannel>(
  storageDatabase,
  PusherConnector(
    appKey,
    authEndPoint: authEndPoint,
    authHeaders: authHeaders,
    cluster: cluster,
    host: host,
    channelDecryption: channelDecryption,
    wsPort: wsPort,
    wssPort: wssPort,
    encrypted: encrypted,
    activityTimeout: activityTimeout,
    pongTimeout: pongTimeout,
    maxReconnectionAttempts: maxReconnectionAttempts,
    reconnectGap: reconnectGap,
    enableLogging: enableLogging,
    autoConnect: autoConnect,
    nameSpace: nameSpace,
  ),
  migrations: migrations,
);