This is a iOS project run on Xcode, you can use this single view application chatting in the official chat room demo.
Suppose you're using your Mac's shell, under your workspace folder, run
git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git
Step in the demo folder
cd ./socket.io-client-cpp/examples/iOS/SioChatDemo
Follow Build&Download for iOS how to get the compiled version of socket.io-client-cpp for iOS.
When done, open SioChatDemo.xcodeproj
file in the parent folder with xcode.
Just compile and run the SioChatDemo
target.
Now, if you have your chat room server run on your local machine, you can chat with device to device or device to web.
There's a target named sioclient
in the Demo project, That is the exactly right config for buiding the sioclient
as a static library on iOS.
With the static library file libsioclient.a
and two exported headers sio_client.h
and sio_message.h
, you won't need to config anything again and again in your integrating projects.