PrivateEncryptedChannel class

Represents a private encrypted channel.

Inheritance

Constructors

PrivateEncryptedChannel.new({required PusherClient client, required String name})

Properties

authData AuthData?
getter/setter pairinherited
authOptions PusherAuthOptions
The authentication options of the client.
no setterinherited
client PusherClient
The pusher client.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isEncrypted bool
no setterinherited
isPresence bool
no setterinherited
isPrivate bool
no setterinherited
isPublic bool
no setterinherited
member Member?
The user member of the channel.
no setterinherited
name String
The name of the channel.
finalinherited
options PusherOptions
The options of the client.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedSecret Uint8List?
The shared secret for the encrypted channel.
no setter
subscribed bool
Whether the channel is subscribed or not.
getter/setter pairinherited
subscriptionCount int
The number of subscriptions to the channel.
no setterinherited
userId String?
getter/setter pairinherited

Methods

bind(String event, Function listener) → void
Binds a listener to an event.
inherited
handleEvent(String event, [dynamic data]) → void
Handles the event by decrypting the data before passing it to the event
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSubscriptionCount(Function listener) → void
Binding for the subscription count event.
inherited
onSubscriptionSuccess(Function listener) → void
Binding for the subscription success event.
inherited
subscribe([bool force = false]) → void
Subscribes to the private channel.
inherited
toString() String
A string representation of this object.
inherited
trigger(String event, [dynamic data]) → void
Triggers an event on the channel (Disabled for encrypted channels)
override
unbind(String event) → void
Unbinds a listener from an event.
inherited
unsubscribe() → void
Unsubscribes from the channel.
inherited

Operators

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