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

Can we use this addon to make a Websocket client? #53

Open
Meach opened this issue Dec 12, 2019 · 5 comments
Open

Can we use this addon to make a Websocket client? #53

Meach opened this issue Dec 12, 2019 · 5 comments

Comments

@Meach
Copy link

Meach commented Dec 12, 2019

Hello,

I want to use websockets and make a client that would connect to my websocket server made with nodejs.
I see the readme note about using ofxJSONRPC to use websockets. Thing is: I really don't want to use JSON RPC, only bare websockets.
I had a look at the code but I do not understand how to make a simple websocket client.

Any hints or example will be great.

Thanks!

@bakercp
Copy link
Owner

bakercp commented Dec 14, 2019 via email

@Meach
Copy link
Author

Meach commented Dec 16, 2019

Yes, in the past I used ofxJSONRPC to make this web server and everything was bundled within OF.

Now I want to separate the web part and use nodejs to take care of the webserver and websocket server. OF will only have a websocket client to communicate with it. I thought ofxHTTP is a good starting point for this but looking at the source makes me very confused. I cannot understand how I could make a websocket client app.

Otherwise I found this websocket client example with Poco and was thinking to maybe use it as a starting point if I cannot make a websocket client with your addons.

@stephanschulz
Copy link

Have you ever found a solution to making a Websocket client with ofxHTTP?
I tired ofxLibwebsockets but it collides with my other use of ofxHTTP and ofxSSLManager.

@Meach
Copy link
Author

Meach commented Nov 18, 2020

I ended up using ofxSocketIO for this purpose. I don't know if it will create some trouble with ofxHTTP or ofxSSLManager as I don't use them anymore.

@stephanschulz
Copy link

I ended up using a simple websocket with poco and ofxHTTP.
https://github.com/stephanschulz/OBS_OF_websocket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants