Skip to content

Twon/profitview_socketio_cpp

 
 

Repository files navigation

Socket.IO C++ for ProfitView

This project has been forked from: isaelblais/socket.io-cpp where it was forked from himynameschris/socket.io-poco. The forked version (of Isaël Blais) seemed to function in some contexts, but not with https://markets.profitview.net.

Some significant changes were required to get it working. It now appears robust.

Prerequisites

Linux

  1. Compilers sudo apt install build-essential

  2. Other software packages

    sudo apt install libssl-dev
    sudo apt install zlib1g-dev
    sudo apt-get install libiodbc2 libiodbc2-dev
    sudo snap install --classic cmake

Building Poco

This deploys Poco to /usr/local

git clone -b master https://github.com/pocoproject/poco.git
cd poco
mkdir cmake-build
cd cmake-build
cmake -H.. -B. -DENABLE_DATA_SQLITE=OFF -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_DATA_ODBC=OFF
cmake --build .
sudo cmake --install .

Note: the Poco build may take tens of minutes

Build

git clone https://github.com/profitviews/profitview_socketio_cpp.git
cd profitview_socketio_cpp/build
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .

This will create (with debugging symbols):

  • build/profitview_socketio_cpp which will print streamed prices from https://markets.profitview.net
  • build/libprofitview_socketio.a a static library containing classes allowing this streaming.

About

cross platform c++ socket.io client written using poco libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.5%
  • CMake 3.8%
  • JavaScript 1.7%