EncryptedChannel class

Extends private channels to provide encrypted channel interface.

Inheritance

Constructors

EncryptedChannel(String name, Pusher pusher, dynamic nacl)
factory

Properties

callbacks ↔ CallbackRegistry
getter/setter pairinherited
failThrough ↔ Function
getter/setter pairinherited
global_callbacks ↔ List<Function>
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
key ↔ Uint8List
getter/setter pair
nacl ↔ dynamic
getter/setter pair
name ↔ String
getter/setter pairinherited
pusher ↔ Pusher
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscribed ↔ bool
getter/setter pairinherited
subscriptionCancelled ↔ bool
getter/setter pairinherited
subscriptionPending ↔ bool
getter/setter pairinherited

Methods

authorize(String socketId, AuthorizerCallback callback) → dynamic
Authorizes the connection to use the channel.
override
bind(String eventName, Function callback, [dynamic context]) → dynamic
inherited
bind_global(Function callback) → dynamic
inherited
cancelSubscription() → dynamic
Cancels an in progress subscription. For internal use only.
inherited
disconnect() → dynamic
Signals disconnection to the channel. For internal use only.
inherited
emit(String eventName, [dynamic data, Metadata metadata]) → Dispatcher
inherited
getDataToEmit(Uint8List bytes) → String
Try and parse the decrypted bytes as JSON. If we can't parse it, just return the utf-8 string
handleEncryptedEvent(String event, dynamic data) → void
handleEvent(PusherEvent event) → dynamic
Handles an event. For internal use only.
override
handleSubscriptionSucceededEvent(PusherEvent event) → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reinstateSubscription() → dynamic
Reinstates an in progress subscripiton. For internal use only.
inherited
subscribe() → dynamic
Sends a subscription request. For internal use only.
inherited
toString() → String
A string representation of this object.
inherited
trigger(String event, dynamic data) → bool
Triggers an event
override
unbind([String eventName, Function callback, dynamic context]) → dynamic
inherited
unbind_all() → dynamic
inherited
unbind_global([Function callback]) → dynamic
inherited
unsubscribe() → dynamic
Sends an unsubscription request. For internal use only.
inherited

Operators

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