Skip to content

Added Cluster Support #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2017
Merged

Added Cluster Support #11

merged 1 commit into from
Nov 7, 2017

Conversation

robsonvn
Copy link
Contributor

@robsonvn robsonvn commented Nov 6, 2017

No description provided.

@@ -83,7 +83,7 @@ public function __construct(Subject $client)
* @throws \InvalidArgumentException
* @return AsyncClient
*/
public static function create(LoopInterface $loop, string $app, Resolver $resolver = null): AsyncClient
public static function create(LoopInterface $loop, string $app, Resolver $resolver = null, $cluster = null): AsyncClient

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line exceeds 120 characters; contains 124 characters

@@ -43,5 +43,9 @@ public function testCreateUrl()
$expectedUrl = 'wss://ws.pusherapp.com/app/barBaz?client=api-clients%2Fpusher+%28https%3A%2F%2Fphp-api-clients.org%2Fclients%2Fpusher%29&protocol=7&version=' . ApiSettings::getVersion();

self::assertSame($expectedUrl, ApiSettings::createUrl('barBaz'));

$expectedUrl = 'wss://ws-ap1.pusher.com/app/barBaz?client=api-clients%2Fpusher+%28https%3A%2F%2Fphp-api-clients.org%2Fclients%2Fpusher%29&protocol=7&version=' . ApiSettings::getVersion();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line exceeds 120 characters; contains 195 characters


$expectedUrl = 'wss://ws-ap1.pusher.com/app/barBaz?client=api-clients%2Fpusher+%28https%3A%2F%2Fphp-api-clients.org%2Fclients%2Fpusher%29&protocol=7&version=' . ApiSettings::getVersion();

self::assertSame($expectedUrl, ApiSettings::createUrl('barBaz','ap1'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space found after comma in function call

@WyriHaximus WyriHaximus merged commit 02b0979 into php-api-clients:master Nov 7, 2017
@WyriHaximus
Copy link
Member

Sweet thanks 👍 ! I'll tag a new release with this feature later today 🎉

@WyriHaximus
Copy link
Member

Thanks again, version 1.1 has just been released with this feature 👍

@robsonvn
Copy link
Contributor Author

robsonvn commented Nov 7, 2017

Thanks mate :)

@WyriHaximus
Copy link
Member

No problem, also do you have twitter? Going to tweet about the release tomorrow and would like to thank you in it :).

@robsonvn
Copy link
Contributor Author

robsonvn commented Nov 23, 2017

I'm afraid it's too late but is @robsonvn 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants