AWS API Gateway WebSocket integration



AWS API Gateway WebSocket integration

AWS API Gateway WebSocket integration

Small tutorial how to integrate WebSockets with API Gateway from AWS

Github: https://github.com/undefinednullerror/websocket-api

00:00 API Gateway intro
00:27 HTTP REST API + Mock integration
04:27 HTTP REST API + Lambda function integration
07:22 Websockets API – $connect handler
13:47 Websockets API – onmessage handler
16:01 Websockets API – web chat application
17:21 Create DynamoDB database
18:02 onConnect – save connections into database
19:21 allow Lambda to access DynamoDB
20:19 onMessage – send a message to all connections within database
24:09 onDisconnect – remove connections from database
26:20 Test the web chat application

Comments are closed.