Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add disablePresenceEvents function

  • Loading branch information...
commit ff035b4bcc77e40dee4f02befb7c36b47e38f382 1 parent bf54f3b
Kevin Burke authored
Showing with 28 additions and 2 deletions.
  1. +2 −1  AUTHORS
  2. +8 −0 CHANGES
  3. +18 −1 docs/usage/token-generation.rst
View
3  AUTHORS
@@ -4,5 +4,6 @@ In alphabetical order:
Adam Balai (minddog)
Asher Snyder (noloh)
-John Britton (johndbritton)
+John Britton (johndbritton)
Kyle Conroy (derferman)
+Kevin Burke (kevinburke)
View
8 CHANGES
@@ -0,0 +1,8 @@
+twilio-php Changelog
+====================
+
+Version 3.2.4
+-------------
+
+Add disablePresenceEvents method to the TwilioCapability object to support
+new Twilio Client feature.
View
19 docs/usage/token-generation.rst
@@ -21,7 +21,10 @@ Capability tokens are used by `Twilio Client <http://www.twilio.com/api/client>`
Allow Incoming Connections
==============================
-Before a device running `Twilio Client <http://www.twilio.com/api/client>`_ can recieve incoming connections, the instance must first register a name (such as "Alice" or "Bob"). The :php:meth:`allowCclientIncoming` method adds the client name to the capability token.
+Before a device running `Twilio Client <http://www.twilio.com/api/client>`_ can
+recieve incoming connections, the instance must first register a name (such as
+"Alice" or "Bob"). The :php:meth:`allowClientIncoming` method adds the client
+name to the capability token.
.. code-block:: php
@@ -46,10 +49,24 @@ To make an outgoing connection from a `Twilio Client <http://www.twilio.com/api/
$params = array("Foo" => "Bar"); // Parameters to be passed
$capability->allowClientOutgoing($applicationSid, $params);
+Disable Presence Events
+=======================
+
+Presence events can use lots of bandwidth if there are many clients
+subscribed to the network. To disable presence events, call
+:meth:`disablePresenceEvents` on your capability object.
+
+.. code-block:: php
+
+ $capability->disablePresenceEvents();
Generate a Token
==================
+Once you have assigned all of the capabilities you would like the Client token
+to have, generate a capability token that you can use in your frontend Client
+app.
+
.. code-block:: php
$token = $capability->generateToken();
Please sign in to comment.
Something went wrong with that request. Please try again.