[FIXED] Fixed a PHP 5.2 incompatibility caused by referencing a private method in array_walk.
[FIXED] Channel name and socket_id values are now validated. [BROKE] Inadvertently broke PHP 5.2 compatibility by referencing a private method in array_walk.
[CHANGED] new Pusher($app_key, $app_secret, $app_id, $options)
- The $options
parameter
has been added as the forth parameter to the constructor and other additional
parameters are now deprecated.
[NEW] $pusher->trigger
can now take an array
of channel names as a first parameter to allow the same event to be published on multiple channels.
[NEW] $pusher->get
generic function can be used to make GET
calls to the REST API
[NEW] $pusher->set_logger
to allow internal logging to be exposed and logged in your own logs.
[CHANGED] Debug response from $pusher->trigger
call is now an associative array in the form array( 'body' => '{String} body text of response', 'status' => '{Number} http status of the response' )
[CHANGED] Added optional $options parameter to get_channel_info. get_channel_info($channel, $options = array() )
[CHANGED] Renamed get_channel_stats to get_channel_info [CHANGED] get_channels now takes and $options parameter. get_channels( $options = array() ) [REMOVED] get_presence_channels
[FIXED] Overwritten socket_id parameter in trigger: pusher#3
[NEW] Versioning introduced at 2.0.0
[NEW] Added composer.json for submission to http://packagist.org/
[CHANGED] get_channels()
now returns an object which has a channels
property. This must be accessed to get the Array of channels in an application.
[CHANGED] get_presence_channels()
now returns an object which has a channels
property. This must be accessed to get the Array of channels in an application.