Skip to content
Advertisement

Tag: aws-api-gateway

WebSockets – send json data via php

I’m trying to send a fire-and-forget request from PHP to my websocket aws api gateway. I’ve set up an action called “sendmessage”. This is the code I’m using: However, nothing happens. If I use wscat, like: it works just fine. What am I doing wrong in my php code? Note: I need the socket connection to be persistent (the way

Advertisement