2015-03-26 21:46:07 +08:00
2015-03-26 21:46:07 +08:00
2015-03-26 21:46:07 +08:00
2015-03-26 21:46:07 +08:00
2015-03-26 21:46:07 +08:00

SIO Client

This SIO client is depends on websocket++ and rapidjson, it provides another C++ client implementation for Socket.IO. This library is able to connect to a Socket.IO server 1.0, and its inspired by the socket.io-clientpp project but I've rewrite 90% of the code.

Socket.IO 1.0+ protocol has been implemented!

The code is compatible with 1.0+ protocol only, not with prior protocols.

C++11 only for now

C++11 saves much time for me, so this is C++11 only for the first version. I'll do further compatibility efforts on demand.

Supported features

  1. Internal thread manangement.
  2. Sends plain text messages.
  3. Sends binary messages.
  4. Sends structured messages with text and binary all together.
  5. Sends messages with an ack and its corresponding callback.
  6. Receives messages and automatically sends customable ack if need.
  7. Automatically ping/pong messages and timeout management.
  8. Reconnection.

Usage

  1. Make sure you have the boost libararies installed.
  2. Include websocket++, rapidjson and sio_client.cpp,sio_packet.cpp in your project.
  3. Include sio_client.h where you want to use it.
  4. Use message and its derived classes to compose complex text/binary messages.

sio client specific source is released under the BSD license.

Description
C++11 implementation of Socket.IO client
Readme MIT 1.4 MiB
Languages
C++ 97.2%
CMake 2.4%
JavaScript 0.4%