Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

Optional auto reconnect feature #40

Open
cdgn-coding opened this issue Jul 2, 2019 · 1 comment
Open

Optional auto reconnect feature #40

cdgn-coding opened this issue Jul 2, 2019 · 1 comment

Comments

@cdgn-coding
Copy link

Hello, first of all thank you very much for your effort constructing this library.

I'm using this library to test strategies. Sometimes the connection gets closed, I was thinking that an optional auto reconnect feature may be useful for this.

I would help you implement this if we think of an implementation before hand.

Regards

@harwee
Copy link
Owner

harwee commented Jul 3, 2019

You can try replacing https://github.com/harwee/IQOption-Api/blob/async/iqoption_api/api.py#L147 with await self.establish_socket_connection_and_run(), that should re establish the socket connection when it is dropped.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants