Skip to content

Commit

Permalink
prepare v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Mar 12, 2020
1 parent c92e5ba commit cc444c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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()`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Client.php
Expand Up @@ -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())
Expand Down

0 comments on commit cc444c3

Please sign in to comment.