AWS API Gateway WebSockets Serverless
1 min read
aws, serverless
Written in 2019. Tools, APIs and prices may have changed since.
Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/aws-api-gateway-websockets-serverless-playground.
update 2019-10-03: websocket events are now “natively supported in serverless framework” no longer need to use serverless-websockets-plugin. see https://serverless.com/framework/docs/providers/aws/events/websocket/
below uses serverless-websockets-plugin
learn AWS API Gateway Websockets with serverless framework