pusher static method
LaravelEcho<PusherClient, PusherChannel<Channel> >
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> 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,
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,
);