Display websocket API responses in streamlit

I have created websocket API (using AWS Lambda and API gateway). I want to integrate this API to the streamlit application.

Websocket API is supposed to send 3 responses (textual data) within a gap of few seconds. I want to show those three responses in the pre_defined streamlit text_area. How to achieve this?