Skip to content

Commit f6b8f02

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 0d1e592 + 05453bb commit f6b8f02

File tree

5 files changed

+214
-139
lines changed

5 files changed

+214
-139
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pusher API Client for PHP 7
22

3-
[![Linux Build Status](https://appveyor-ci.org/WyriHaximus/php-pusher-client.svg?branch=master)](https://appveyor-ci.org/WyriHaximus/php-pusher-client)
3+
[![Linux Build Status](https://travis-ci.org/WyriHaximus/php-pusher-client.svg?branch=master)](https://travis-ci.org/WyriHaximus/php-pusher-client)
44
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/pusher-client/v/stable.png)](https://packagist.org/packages/WyriHaximus/pusher-client)
55
[![Total Downloads](https://poser.pugx.org/WyriHaximus/pusher-client/downloads.png)](https://packagist.org/packages/WyriHaximus/pusher-client)
66
[![Code Coverage](https://scrutinizer-ci.com/g/WyriHaximus/php-pusher-client/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/WyriHaximus/php-pusher-client/?branch=master)

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
],
1010
"require": {
1111
"php": "^7.0",
12-
"ratchet/pawl": "^0.2.2",
13-
"wyrihaximus/api-client": "dev-master"
12+
"wyrihaximus/api-client": "dev-master",
13+
"rx/websocket": "^0.9.2"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "^5.2.3",

composer.lock

Lines changed: 152 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/reddit.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
$subReddits = $argv;
1919
array_shift($subReddits);
2020
foreach ($subReddits as $subReddit) {
21-
$client->subscribe($subReddit)->subscribe(new CallbackObserver(function ($event) {
22-
echo 'Channel: ', $event['channel'], PHP_EOL;
23-
echo 'Event: ', $event['event'], PHP_EOL;
24-
echo 'Data: ', $event['data'], PHP_EOL;
21+
$client->channel($subReddit)->subscribe(new CallbackObserver(function ($event) {
22+
echo 'Channel: ', $event->channel, PHP_EOL;
23+
echo 'Event: ', $event->event, PHP_EOL;
24+
echo 'Data: ', $event->data, PHP_EOL;
2525
}));
2626
}
2727

0 commit comments

Comments
 (0)