You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes client does not correctly send ws.close() event. So we need to clean up.
As of now, AWS API Gateway WebSocket have maximum 2 hours time limit, so we can record connection when we get $onconnect and safely clean it after 2.5 hours later.
Setup DynamDB TTL feature for connections table
Add Lambda to clean DynamoDB table and connect it to DynamoDB Streams
When record in connections table is deleted, we also need to cleanup rooms table