Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    How to close websocket?

    Python SDK
    0
    3
    32
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dhaval0208 last edited by

      I want to close web socket on specific time. I used sws.close_connection() for close web socket but it's not working. So please let me know How can I close Web Socket?

      M J 2 Replies Last reply Reply Quote 0
      • M
        Moderator_3 @dhaval0208 last edited by

        Hello @dhaval0208
        We have rised your concern to our tech team and we will get back to you soon

        Regards,
        SmartAPI Team

        1 Reply Last reply Reply Quote 0
        • J
          jaideep siddula @dhaval0208 last edited by

          @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

          1 Reply Last reply Reply Quote 1
          • First post
            Last post