Skip to content

Commit

Permalink
Rename project for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Oct 28, 2022
1 parent c6e2d4d commit 2335674
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Use this library when building websocket APIs with Bref.
## Installation

```bash
composer require bref/websocket-client
composer require bref/api-gateway-websocket-client
```

## Usage

```php
$client = \Bref\Websocket\SimpleWebsocketClient::create($apiId, 'us-east-1', 'default');
$client = \Bref\ApiGatewayWebsocket\SimpleWebsocketClient::create($apiId, 'us-east-1', 'default');

$client->message($connectionId, 'Hello world!');
```
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "bref/websocket-client",
"name": "bref/api-gateway-websocket-client",
"description": "Websocket client for API Gateway Websockets",
"keywords": ["bref", "api-gateway", "websocket", "serverless"],
"license": "MIT",
"type": "library",
"autoload": {
"psr-4": {
"Bref\\Websocket\\": "src/"
"Bref\\ApiGatewayWebsocket\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Bref\\Websocket\\Test\\": "tests/"
"Bref\\ApiGatewayWebsocket\\Test\\": "tests/"
}
},
"require": {
Expand Down
2 changes: 1 addition & 1 deletion src/SimpleWebsocketClient.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Bref\Websocket;
namespace Bref\ApiGatewayWebsocket;

use AsyncAws\Core\Credentials\CredentialProvider;
use Symfony\Component\HttpClient\HttpClient;
Expand Down
2 changes: 1 addition & 1 deletion src/WebsocketClient.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Bref\Websocket;
namespace Bref\ApiGatewayWebsocket;

use AsyncAws\Core\AbstractApi;
use AsyncAws\Core\Request;
Expand Down
2 changes: 1 addition & 1 deletion src/WebsocketClientStatus.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Bref\Websocket;
namespace Bref\ApiGatewayWebsocket;

use DateTimeImmutable;

Expand Down
4 changes: 2 additions & 2 deletions tests/WebsocketClientTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php declare(strict_types=1);

namespace Bref\Test\Websocket;
namespace Bref\ApiGatewayWebsocket\Test;

use AsyncAws\Core\Credentials\NullProvider;
use AsyncAws\Core\Exception\Http\ClientException;
use Bref\Websocket\SimpleWebsocketClient;
use Bref\ApiGatewayWebsocket\SimpleWebsocketClient;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\HttpClient\Response\MockResponse;
Expand Down

0 comments on commit 2335674

Please sign in to comment.