CST 3130 –第20周|讲座20:AWS上的WebSocket-David Gamez



本讲座解释了如何创建在Amazon Web Services(AWS)上运行的WebSocket聊天应用程序。

该讲座是英国伦敦米德尔塞克斯大学高年级大数据高级Web开发本科课程(CST 3130)的一部分。 。

5 comments
  1. Is it true to say that this is not real webscoket but AWS version of long polling ? I'm asking because it seems like the Lambda functions have to work on every request. I think a repeating ajax request might be more efficient ??? Thoughts ?

  2. Hey David ,
    Thank you for sharing the video for the aws websockets.
    I still have an issue after connecting , an error happened.

    Steps:
    1- Deploy the API Gateway.
    2- Connects through wscat or frontend (I'm using Angular 7)
    3- It connects fine and a new connection random Id is stored on DynamoDB
    4- connection Id is deleted when disconnect which is great .

    BUT I have this issue after connecting and try to send messages:
    wscat -c wss://{App_ID}.execute-api.us-east-1.amazonaws.com/dev
    > {"action":"sendMessage", "data","Say HIII"}
    < {"message": "Internal server error", "connectionId":"App_ID", "requestId":"request_ID"}

Comments are closed.