Skip to content

Commit

Permalink
Merge pull request #81 from mattfelsen/master
Browse files Browse the repository at this point in the history
Client reconnect defaults to off
  • Loading branch information
robotconscience committed Mar 6, 2016
2 parents f3a3e53 + b9e260d commit 656666d
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit 656666d

Please sign in to comment.