Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. mohitag
    M
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    mohitag

    @mohitag

    SmartAPI Group

    1
    Reputation
    6
    Posts
    3
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    mohitag Follow
    SmartAPI Group

    Best posts made by mohitag

    • RE: Error while closing the websocket connection

      @admin I think there is some issue with the __on_close function which was causing this error. In the function definition I added 2 additional arguments a and b as shown below. This fixed the error I was getting while closing the connection using ss.ws.close().

      23474fa1-a05c-47fe-ac62-49d07f52c2a9-image.png

      Kindly look into it.

      posted in Python SDK
      M
      mohitag

    Latest posts made by mohitag

    • RE: Error while closing the websocket connection

      @admin I think there is some issue with the __on_close function which was causing this error. In the function definition I added 2 additional arguments a and b as shown below. This fixed the error I was getting while closing the connection using ss.ws.close().

      23474fa1-a05c-47fe-ac62-49d07f52c2a9-image.png

      Kindly look into it.

      posted in Python SDK
      M
      mohitag
    • Error while closing the websocket connection

      Hi,

      I am facing an error while closing the websocket connection.

      "__on_close() takes 2 positional arguments but 4 were given."

      Could someone please help with this issue?

      posted in Python SDK
      M
      mohitag
    • RE: Close websocket

      @HP Is it working for you? I get the following error when I try to close the connection using ss.ws.close():

      8e957981-4493-4e0e-a722-a678809c786a-image.png

      posted in Python SDK
      M
      mohitag
    • RE: Not Able to Close Websocket connection

      @admin I am still waiting for your response. Is there any way to close the websocket connection? Request for a quick resolution. Thanks.

      posted in Python SDK
      M
      mohitag
    • RE: Not Able to Close Websocket connection

      @mohitag
      Hi,
      Is there any update on this query?

      --
      Regards,
      Mohit

      posted in Python SDK
      M
      mohitag
    • Not Able to Close Websocket connection

      I am not able to close the websocket connection. When I run ss.ws.close() statement in python, I get the following error:

      AttributeError Traceback (most recent call last)
      Input In [19], in <cell line: 1>()
      ----> 1 ss.ws.close()

      AttributeError: 'NoneType' object has no attribute 'close'

      Any suggestions?

      posted in Python SDK
      M
      mohitag