Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client reconnect defaults to off #81

Merged
merged 1 commit into from
Mar 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions libs/ofxLibwebsockets/src/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@

namespace ofxLibwebsockets {

ClientOptions defaultClientOptions(){
ClientOptions defaultClientOptions(){
ClientOptions opts;
opts.host = "localhost";
opts.port = 80;
opts.bUseSSL = false;
opts.channel = "/";
opts.protocol = "NULL";
opts.version = -1; //use latest version
opts.reconnect = true;

// Note, turning this on has been seen to cause an EXC_BAD_ACCESS error
// when calling libwebsocket_service() in threadedFunction(). If you're
// having issues, try raising the reconnect interval, or not using this
// reconnect option. Use at your own risk!
opts.reconnect = false;
opts.reconnectInterval = 1000;

opts.ka_time = 0;
Expand Down