Join Slack
Powered by
I’m tinkering with my first websocket API using AP...
# sst
r
Ross Coundon
04/06/2022, 5:05 PM
I’m tinkering with my first websocket API using API Gateway (used a bit of
socket.io
in the past) Anyone know which TypeScript type I should use for the handler, I can’t see anything obvious and the example
here
doesn’t mention it.
r
Ross Gerbasi
04/06/2022, 5:13 PM
https://serverless-stack.slack.com/archives/C01JG3B20RY/p1646431952458809
maybe helpful I think either V1 or V2 should get you there, but seems like V1 is what fixed it up here.
r
Ross Coundon
04/06/2022, 5:17 PM
Smashing, thank you. That’s got the requestContext.connectionId in it
Ross Coundon
04/06/2022, 6:08 PM
Don't suppose you have used the aws-sdk v3 with websockets ?
Ross Coundon
04/06/2022, 6:29 PM
Don't worry, think I've found the client I need. ApiGatewayManagementApiClient
Open in Slack
Previous
Next