Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49379

Best practices for multiple listener on single event

$
0
0

@gaurangkela wrote:

events are published while making chat with XMPP server, server published events like…

this.client.on('message:sent', function (msg) {
      console.log("message:sent");
      console.log(msg);
);

 this.client.on('pubsub:event', function (msg) {
      console.log("pubsub:event");
      console.log(msg);
);

 this.client.on('message', function (msg) {
      console.log("message");
      console.log(msg);
      );

this.client.on('stanza', function (msg) {
      console.log("stanza")

      console.log(msg);
    });

what will be impact on app if i use this events listener multiple times? does it will increase the load on application or anything else problem occurred? or any other side effect?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>