@jshaw3 wrote:
I'm trying to get my OF app using the ofxLibwebsockets addon to connect to my localhost on port :4200 and am running into connection issues. I can connect to the echo.websockets.org example in the package but no dice for anything locally.
I have the host, protocol, port etc... etc set up however the only thing that I can see that might be causing the issue is the
bUseSSL
option. It formats the url that is making the request toxxx.xxx.x.xxx:4200/:0
when I setbUseSSL
to false -- since I'm not using SSL.I'm running Node.js as my local server and I'm doing the websockets with Socket.io. I can also connect to my localhost from other web devices on the network using the localhost's IP without an issue connecting to
xxx.xxx.x.xxx:4200
The verbose log i'm getting from OF is
[verbose] [ofxLibwebsockets] connect: xxx.xxx.x.xxx:4200/:0 [verbose] [ofxLibwebsockets] Setting timeout 10 [verbose] [ofxLibwebsockets] LWS_CALLBACK_OPENSSL_LOAD_EXTRA_CLIENT_VERIFY_CERTS [verbose] [ofxLibwebsockets] LWS_CALLBACK_PROTOCOL_INIT [verbose] [ofxLibwebsockets] libwebsocket init success [verbose] [ofxLibwebsockets] LWS_CALLBACK_LOCK_POLL [verbose] [ofxLibwebsockets] LWS_CALLBACK_ADD_POLL_FD [verbose] [ofxLibwebsockets] LWS_CALLBACK_UNLOCK_POLL [verbose] [ofxLibwebsockets] LWS_CALLBACK_LOCK_POLL [verbose] [ofxLibwebsockets] LWS_CALLBACK_CHANGE_MODE_POLL_FD [verbose] [ofxLibwebsockets] LWS_CALLBACK_UNLOCK_POLL [verbose] [ofxLibwebsockets] Connection successfully created. Connecting. [ error ] [ofxLibwebsockets] Connection error on close
For the ofxLibwebsockets addon to work does it need to be connecting to a remote server like Heroku? And is there a way to remove the "/:0:" from the end of the url being requested in the plugin?
Any guidance would be awesome too!
Cheers,
Posts: 2
Participants: 2