Got tired of implementing reconnects in my apps and figured the addon might as well support it. I added some new options to ClientOptions so you can enable/disable the reconnect option and the timing (defaults to on, 1s).
This seems to work fine with a reconnect time of 1s, but I get some weird crashes ~half the time when I lower it. Maybe you've got a better idea of what's going on here?
Not sure why this is failing...the debugger shows context has a memory address/is not NULL, and the code only gets here after startThread() is called sooo.... ¯\_(ツ)_/¯
Got tired of implementing reconnects in my apps and figured the addon might as well support it. I added some new options to
ClientOptions
so you can enable/disable the reconnect option and the timing (defaults to on, 1s).This seems to work fine with a reconnect time of 1s, but I get some weird crashes ~half the time when I lower it. Maybe you've got a better idea of what's going on here?
Not sure why this is failing...the debugger shows
context
has a memory address/is not NULL, and the code only gets here afterstartThread()
is called sooo....¯\_(ツ)_/¯