how to close the websocket manually?

Rekha
How can I close the websocket manually? I have a script in which after the market hours , I wish to close the websocket. Can on_close() be called manually?
Tagged:
Sign In or Register to comment.