georgeboot / laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets. Works with Bref.sh and Laravel Vapor.
MIT License
99 stars 22 forks source link

Trouble subscribing to channels #12

Closed alistairdivorty closed 3 years ago

alistairdivorty commented 3 years ago

Thank you for creating a great package, I’m looking forward to using it! I’m sure this is due to a misunderstanding on my part, but I’ve been unable to get it working in an app deployed using Vapor. No connection IDs or channels are being written to the DynamoDB table.

I can see that Handler::subscribe() is called from the VaporHandle command, which is invoked via an API Gateway event. But for an API Gateway event to be fired, a message needs to be sent to the API, which doesn’t happen unless the command is invoked. Am I missing a point at which Handler::handleMessage() is being called without the VaporHandle command having to be invoked beforehand?

alistairdivorty commented 3 years ago

Please disregard. I had selected the CLI Lambda for the wrong environment when setting the API Gateway integration. Thank you.