pusher static method

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

Init Echo with Pusher client

Implementation

static Echo<PUSHER.PusherClient, PusherChannel> pusher(
  String appKey, {
  required String authEndPoint,
  Map<String, String> authHeaders = const {
    'Content-Type': 'application/json'
  },
  String? cluster,
  String host = "ws.pusherapp.com",
  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,
}) =>
    Echo<PUSHER.PusherClient, PusherChannel>(
      PusherConnector(
        appKey,
        authEndPoint: authEndPoint,
        authHeaders: authHeaders,
        cluster: cluster,
        host: host,
        wsPort: wsPort,
        encrypted: encrypted,
        activityTimeout: activityTimeout,
        pongTimeout: pongTimeout,
        maxReconnectionAttempts: maxReconnectionAttempts,
        maxReconnectGapInSeconds: maxReconnectGapInSeconds,
        enableLogging: enableLogging,
        autoConnect: autoConnect,
        nameSpace: nameSpace,
      ),
    );