@dhaval0208 Hi, you can use the 'exchange_timestamp' key from the websocket message and call sws.close_connection() accordingly. Hope this helps.
Thank you.
Regards,
Jaideep Siddula