robotconscience / ofxLibwebsockets

[Deprecated] openFrameworks wrapper of libwebsockets for WebSocket client and server functionality
Other
171 stars 68 forks source link

Add reconnect to Client #76

Closed mattfelsen closed 8 years ago

mattfelsen commented 8 years ago

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?

lws 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.... ¯\_(ツ)_/¯

robotconscience commented 8 years ago

Looks good, thanks for this!

Not sure on the error. TBH there's something weird going on with ofThread development lately. Maybe open a separate issue for that?

mattfelsen commented 8 years ago

maverick and goose