From cc444c30a112f6eb819469522086acaa594b1953 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Thu, 12 Mar 2020 22:05:49 +0300 Subject: [PATCH] prepare v3.1.0 --- changelog.md | 4 ++++ composer.json | 2 +- src/Client.php | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 74282ca..8621c18 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# v3.1.0 + +* support `channels` JWT claim in `generateConnectionToken` function - which is an array of server-side channels to subscribe (see [docs](https://centrifugal.github.io/centrifugo/server/server_subs/)). Thanks, [Julius TM](https://github.com/juliustm) + # v3.0.2 * fix `Call to undefined function phpcent\_json_last_error_msg()` diff --git a/composer.json b/composer.json index eadfdd0..13f432d 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description":"PHP library to communicate with Centrifugo HTTP API", "keywords": ["centrifugo", "websocket", "realtime", "messaging"], "homepage": "https://github.com/centrifugal/phpcent", - "version": "3.0.2", + "version": "3.1.0", "license": "MIT", "require":{ "php": ">=5.4.0", diff --git a/src/Client.php b/src/Client.php index 42e88ad..b8e4310 100644 --- a/src/Client.php +++ b/src/Client.php @@ -277,6 +277,7 @@ public function info() * @param string $userId * @param int $exp * @param array $info + * @param array $channels * @return string */ public function generateConnectionToken($userId = '', $exp = 0, $info = array(), $channels = array())