Pubnub isTyping status Ionic2

I implemented chat using Ionic2 with pubnub, so how can I implement isTypingto show it on mine html? I know what I need to create statefor my user, but I do not know how to update it.

My pubnub servicehave different methods, and I thought I could add PubNubEventTypewhat he called TYPING, but I don’t know how to update it from my component (where I have chat installed)

This is my component...

Any ideas?

+4
source share
1 answer

PubNub - using setState for isTyping

, true, ( ) false. . pubNubService.setState(...) API.

- JS/Iconic, PubNub, - , .

, .

0

Source: https://habr.com/ru/post/1680874/


All Articles