PusherOptions class

Constructors

PusherOptions({PusherAuth? auth, 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})
PusherOptions.fromJson(Map<String, dynamic> json)
factory

Properties

activityTimeout int?
The number of milliseconds of inactivity at which a "ping" will be triggered to check the connection.
final
auth PusherAuth?
Sets the authorization options to be used when authenticating private, private-encrypted and presence channels.
final
cluster String?
A "cluster" represents the physical location of the servers that handle requests from your Channels app.
final
encrypted bool?
Whether the connection to Pusher should be use TLS.
final
hashCode int
The hash code for this object.
no setterinherited
host String?
The host to which connections will be made.
final
maxReconnectGapInSeconds int?
The delay in two reconnection extends exponentially (1, 2, 4, .. seconds) This property sets the maximum in between two reconnection attempts.
final
maxReconnectionAttempts int?
Number of reconnect attempts when websocket connection failed
final
pongTimeout int?
The number of milliseconds after a "ping" is sent that the client will wait to receive a "pong" response from the server before considering the connection broken and triggering a transition to the disconnected state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wsPort int?
The port to which non TLS connections will be made.
final
wssPort int?
The port to which encrypted connections will be made.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited