'simple chat functinality by AWS lambda function and API gateaway and python

I have created an websocket url and created 3 routes means lambda function. 1.Connect 2.discunnect 3.onMessage

Also I have created 2 API .

  1. for creating new unique Room with user ids
  2. send msg to particular unique room

Im intending to get all the data of a particular room by websocket event onMessage

Can Anyone Please guide me the steps achiving this chat functionality



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source