NPusher class

Constructors

NPusher()

Properties

channelMap Map<String, Channel>
final
connected bool
read / write
enableLogging bool
read / write
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

bindEchoPresence(String channelName, {void onEventHere(NEvent event), void onEventJoin(NEvent event), void onEventLeave(NEvent event)}) Future<NChannel>
Remember the data response is difference between android and ios pusher:member_added and pusher:member_removed are not work with ios ==> update periodic in this case
bindEchoPublic(NChannel channel, String eventName, void onEvent(NEvent event)) Future<void>
connect(dynamic onConnectionStateChange(String previousState, String currentState), dynamic onError(String message, String code, String exception)) Future<void>
disconnect() Future<void>
echoPresencePeriodicStart(String channelName, {void onEventHere(NEvent event), Duration duration = const Duration(seconds: 5)}) Future<Timer>
getEchoEventName(String eventName) String
Echo bind
init({String appKey = '', String authUrl = '', Map<String, String> headers, String cluster = 'mt1', bool enableLogging = true}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
subscribe(String channelName) Future<NChannel>
toString() String
A string representation of this object.
inherited
unbindEchoPresence(NChannel nChannel, {bool onEventJoin = false, bool onEventLeave = false}) Future<void>
unbindEchoPublic(NChannel channel, String eventName) Future<void>
unsubscribe(String channelName) Future<void>

Operators

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