ebonet-zz / socketio-angular-cpp-example

Example that uses socketio to comunicate between cpp and a angular js app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket.IO C++ small example

Cloning:

git clone --recursive git://github.com/ebonet/socketio-angular-cpp-example.git

Server

  1. Install dependencies via npm instal
  2. Run with node main.js

Web client

After running main.js, open your web browser and navigate to localhost:3000

C++ client

Unix

  sudo apt-get install libboost-all-dev
  cd client/socket
  cmake ./
  make install
  cd ../
  ./buildunix client
  ./client

If The Cmake version is below 3.2 we will need to compile it ourselves.

  sudo apt-get install build-essential
  wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
  tar -zxvf cmake-3.2.2.tar.gz
  cd cmake-3.2.2
  ./configure
  sudo make
  sudo make install

Mac

  brew install boost
  cd client/socket
  cmake ./
  make install
  ./buildmac client
  ./client
  1. Run the client executable and start typing!

About

Example that uses socketio to comunicate between cpp and a angular js app


Languages

Language:JavaScript 50.4%Language:HTML 34.4%Language:C++ 15.2%