sacOO7 / socketcluster-client-C

C/ C++ client for socketcluster framework in node.js
http://socketcluster.io/
13 stars 7 forks source link

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

Open nguyenhaian opened 7 years ago

nguyenhaian commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.