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

[Request] Can you provide more detail document? #1

Open
nguyenhaian opened this issue Feb 16, 2017 · 4 comments
Open

[Request] Can you provide more detail document? #1

nguyenhaian opened this issue Feb 16, 2017 · 4 comments

Comments

@nguyenhaian
Copy link

I tried to build the source in xcode but got no success.
There are many things to do be done before I can build the project, like to install libwebsockets and json-c, openssl.

Can you provide us a document with step to step guide how to run this project?
Thank you.

@sacOO7
Copy link
Owner

sacOO7 commented Feb 16, 2017

Actually there is a little bug in project where it doesn't get callback for disconnect event. It needs to be fixed.I'm currently busy doing another work. Perhaps,If you are trying to build project for android, you can use java-client or ios-client for ios app development. To install libwebsockets follow https://github.com/warmcat/libwebsockets/blob/master/README.build.md and for json-c, you can follow official github repo.
To use library in your project, just add lib folder alongside src folder. Try to run tests under examples folder.
To run particular c file command is
gcc file_name.c -o file_name -lwebsockets -l json -lpthread
then
./file_name

@anilkbunkar
Copy link

Hi @sacOO7 , is disconnect issue still valid?
I am counting on this library for my iOS SDK. That SDK is in Objective-C due legacy code and not able to integrate swift ios-client properly.
Also, some documentation for integration in iOS project will be a great help.

Thank You.

@sacOO7
Copy link
Owner

sacOO7 commented Jul 26, 2018

Hi @anilkbunkar , I believe it's fixed. Just use latest version of socketcluster. You will receive each and every kind of callback event in the response. About your iOS SDK integration, I would recommend using official swift client for your use-case. There are lot of tutorials out there which describes integration of objective-C with swift.

@anilkbunkar
Copy link

Thank you so much @sacOO7 for the quick response. The last changes in the socketcluster-client-c code were made 2 years back so just wanted to confirm. Any guide to integrate it into the iOS project?

I tried the swift-client but there were a lot of compile-time issues. Using swift in an obj-c client is tricky. I will give one more try to integrate the swift client or I will proceed with the C client.

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