Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 811 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 811 Bytes

Example WebSocket API Gateway with SAM Template and WebSocket Request Authorizer

This repo is the code for the article I wrote here.

Install

yarn install

Deploy to AWS

First make sure your AWS CLI credentials are configured.

Next, make sure you have the SAM CLI installed and working.

yarn deploy

Files

The test route handler is defined in the index.js file.

The Request Authorizer is in the authorizer.js file.

The SAM Template is the template.yaml file.