File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
example_client_hello_world/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,29 +5,29 @@ void ofApp::setup(){
55 ofBackground (0 );
66 ofSetLogLevel (OF_LOG_VERBOSE);
77 // basic connection:
8- // client.connect("echo.websocket.org");
8+ client.connect (" echo.websocket.org" );
99 // OR optionally use SSL
10- // client.connect("echo.websocket.org", true);
10+ // client.connect("echo.websocket.org", true);
1111
1212 // advanced: set keep-alive timeouts for events like
1313 // loss of internet
1414
1515 // 1 - get default options
16- ofxLibwebsockets::ClientOptions options = ofxLibwebsockets::defaultClientOptions ();
16+ // ofxLibwebsockets::ClientOptions options = ofxLibwebsockets::defaultClientOptions();
1717
1818 // 2 - set basic params
19- options.host = " echo.websocket.org" ;
19+ // options.host = "echo.websocket.org";
2020
2121 // 3 - set keep alive params
2222 // BIG GOTCHA: on BSD systems, e.g. Mac OS X, these time params are system-wide
2323 // ...so ka_time just says "check if alive when you want" instead of "check if
2424 // alive after X seconds"
25- options.ka_time = 1 ;
25+ // options.ka_time = 1;
2626// options.ka_probes = 1;
2727// options.ka_interval = 1;
2828
2929 // 4 - connect
30- client.connect (options);
30+ // client.connect(options);
3131
3232 ofSetLogLevel (OF_LOG_ERROR);
3333
You can’t perform that action at this time.
0 commit comments