Tutorial: presence-plugin

presence-plugin

Presence features

A plugin ...

Key features:

  • Returns a personal presence
  • Change personal presence
  • Returns the presence info for a particular user.
  • Retrieves a list of subscribed users (a list of users that send they presence).
  • Subscribe a specified extension for presence events.
  • Remove previously subscribed user for current session.

Subscribe to presence events

wtapi = new WTAPI("...");
wtapi.presence.on("presence_changed", callback);
wtapi.presence.on("personal_presence_changed", callback);
wtapi.connect();