mikha-dev / mt4-websockets

Turns Metatrader4/MetaTrader5 into web socket client
https://dev4traders.com
76 stars 55 forks source link

[Feature] restore the socket after a disconnection #11

Open dawadam opened 9 months ago

dawadam commented 9 months ago

Hello, Great job. What should be done when the server disconnects? I've tested it, and the connection doesn't resume; the Expert Advisor needs to be restarted. Is there a way to restore the socket after a disconnection? Perhaps through detecting a socket closure event.

monomy001 commented 6 months ago

-sigh- apparently this project is no longer maintained is it? @mikha-dev Question @dawadam how do you even detect if the socket disconnected? it seems when i try, the disconnection only works when reading incoming websocket message, bt it still sends out message normally.