An open API service indexing awesome lists of open source software.

https://github.com/brefphp/api-gateway-websocket-client

Websocket client for API Gateway Websockets
https://github.com/brefphp/api-gateway-websocket-client

Last synced: 3 months ago
JSON representation

Websocket client for API Gateway Websockets

Awesome Lists containing this project

README

        

Websocket client for API Gateway Websockets.

Use this library when building websocket APIs with Bref.

## Installation

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

## Usage

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

$client->message($connectionId, 'Hello world!');
```