如何使用Amazon API Gateway和AWS Lambda創建Websocket API-完整教程



在這個深入的視頻中,我們將學習如何設置Websocket端點。 Websocket允許用戶連接,然後任何一方都可以隨時發送消息。這對於通知系統,消息傳遞平台等非常有用。

這是開始課程的倉庫
https://github.com/SamWSoftware/ServerlessYoutubeSeries/tree/l13-clean

這是完整代碼的回購
https://github.com/SamWSoftware/ServerlessYoutubeSeries/tree/l13-websocket-lambdas。

5 comments
  1. Thanks for the great tutorial, it was really helpful. I was wondering if you know or had any ideas which is the best way to message an individual user based on their unique username? I'm having trouble as the user may have multiple tabs or devices open and I need the notification (that comes from an EC2 instance) to pop up on all of their connections. If you have time, any pointers would be great. Keep up the good work 🙂

  2. These are literally the best coding instructional on the NET!!! Awesome you use the CLI for everything were as every of instructional use the GUI. If you subscribe and follow along you will not be disappointed. 10/10!!!!!!

Comments are closed.