Skip to content

brefphp/api-gateway-websocket-client

Repository files navigation

Websocket client for API Gateway Websockets.

Use this library when building websocket APIs with Bref.

Installation

composer require bref/api-gateway-websocket-client

Usage

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

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