PHP code example of bref / api-gateway-websocket-client
1. Go to this page and download the library: Download bref/api-gateway-websocket-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bref / api-gateway-websocket-client example snippets
$client = \Bref\ApiGatewayWebsocket\SimpleWebsocketClient::create($apiId, 'us-east-1', 'default');
$client->message($connectionId, 'Hello world!');