Handshake class

Handles Pusher protocol handshakes for transports. Calls back with a result object after handshake is completed. Results always have two fields:

  • action - string describing action to be taken after the handshake
  • transport - the transport object passed to the constructor Different actions can set different additional properties on the result. In the case of 'connected' action, there will be a 'connection' property containing a Connection object for the transport. Other actions should carry an 'error' property.
Annotations
  • @JS()

Constructors

Handshake(TransportConnection transport, void callback(dynamic HandshakePayload))
factory
Handshake.fakeConstructor$()

Properties

callback ↔ void Function(dynamic)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onClosed Function
getter/setter pair
onMessage Function
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transport TransportConnection
getter/setter pair

Methods

bindListeners() → dynamic
close() → dynamic
finish(String action, dynamic params) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unbindListeners() → dynamic

Operators

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