Socket connection is failing

west2t14
Hi - Socket is not getting connected. All other API functions like Historical APIs, order placement, etc are working fine. I am not able to establish socket connection. Any help is much appreciated!
Tagged:
  • sujith
    Can you mention what is the version of library you are using and code with complete stacktrace of the error?
  • west2t14
    Hey Sujith - I am using Kiteconnect 3.0 library. Everything was fine till today morning. Suddenly the socket connection is failing. Here is my usage

    Ticker7 = New Ticker(MyAPIKey, MyAccessToken)
    AddHandler Ticker7.OnTick, AddressOf Ontick7


    Ticker7.Connect()
    Ticker7.Subscribe(Tokens:={"260105"})
    Ticker7.SetMode(Tokens:={"260105"}, Mode:=Constants.MODE_FULL)


    and here is the Ontick7 event

    Private Sub Ontick7(tickdata As Tick) Handles Ticker7.OnTick
    Try

    Me.Invoke(Sub()

    Me.Label2.Text = tickdata.LastPrice


    End Sub)

    Catch ex As Exception
    txtLog.Text = txtLog.Text & Environment.NewLine & DateTime.Now & " " & ex.Message
    End Try


    and When I check the connection status for Ticker7.isconnected, i am getting False.

  • rakeshr
    with complete stacktrace of the error
    What is the error being thrown? Can you paste here the error stack trace?
Sign In or Register to comment.