Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS API Gateway websocket send message to connection

I am trying to send a message back from AWS API gateway websocket which has been routed to my lambda.

I am currently able to retrieve the connectionID but I seem to have some trouble sending a message back to the connection using python or postman.

Following the docs, I have been sending post requests to the following:

https://<API_ID>.execute-api.ap-southeast-1.amazonaws.com/<STAGE>/@connections/<connectionID>

Can anyone verify if I am doing this correctly? I seem to be getting the following response

{
    "message": "Missing Authentication Token"
}

Is there supposed to be an Auth Token to be parsed to the websocket api?

like image 492
lws803 Avatar asked Oct 29 '25 20:10

lws803


1 Answers

Solved it, apparently I needed to include my AWS authorisation in Postman. Head to Authorization and select AWS Signature

like image 131
lws803 Avatar answered Nov 01 '25 12:11

lws803



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!