pubnub / dart

PubNub Dart SDK
Other
27 stars 15 forks source link

How to listen to typings events(signals) ? #35

Closed Adidi closed 3 years ago

Adidi commented 3 years ago

I see in the object i can send signal through pubnub instance like this:

pubnub.signal('channel', {'text': 'typing_on', 'user': 'Liran'});

How can I receive this signal in a channel ? I try to find and play with it and could not succeed

Thanks

are commented 3 years ago

Hi! You can listen to signals just like you subscribe to normal messages. The Envelope has a messageType field that allows you to differentiate between normal messages and signals.

Adidi commented 3 years ago

Thank you! You should really improve your dart docs so we can enjoy your amazing library. If you look dart sdk page on pubnub its really poor comparing to other SDKs and trivial stuff to do with the sdk is not clear enough on how to acheive those...

are commented 3 years ago

Yes, we are in progress with updating the Dart docs on our page. Thank you for using it tho! We really appreciate all the feedback!