Wss/https terribly slow!

Hello Community!

I recently built a streamlit app and deployed it using Nginx in the front for handling SSL.

From my observations, its very quick to establish a connection when running over http. But when trying to access the site using https + wss, its taking several seconds ( 10s +) sometimes to setup the intital websocket connection. It is working, but its very slow to establish the websocket connection over https.

Does anyone have any pointers or learnings on this ?

Thankyou! in advance.

Bumping this up ^^