☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
9.2K
All Categories
9
Go client
538
.Net API client
230
Kite Publisher
473
.Net / VBA / Excel (3rd party)
288
Algorithms and Strategies
719
Java client
678
API clients
331
PHP client
2.3K
Python client
264
Mobile and Desktop apps
996
Market data (WebSockets)
2.3K
General
In this Discussion
February 17
sujith
February 17
arijit
connection error
SAPANKHUNTIA
February 17
in
Python client
hii traders..
Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
someone please explain what this means and how to sort it out.
thank you.
Tagged:
Python Client
#websocket #python #1006
connection error
arijit
February 17
Facing similar issue. Code:
def on_ticks(ws, ticks):
logging.debug("Ticks: {}".format(ticks))
def on_connect(ws, response):
ws.subscribe([256265])
ws.set_mode(ws.MODE_FULL, [256265])
def on_close(ws, code, reason):
ws.stop()
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close
kws.connect()
sujith
February 17
edited February 17
You can check out FAQs
here
.
Sign In
or
Register
to comment.
def on_ticks(ws, ticks):
logging.debug("Ticks: {}".format(ticks))
def on_connect(ws, response):
ws.subscribe([256265])
ws.set_mode(ws.MODE_FULL, [256265])
def on_close(ws, code, reason):
ws.stop()
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close
kws.connect()