Simple Socket.io demo written in C++
. Its aim is to provide a simple
working example of how to use the Socket.io library in a C++
project,
using git submodules
to manage dependencies and CMake
as the build system.
apricot :: echo server
type 'exit' to quit
-----------------------------------
hello world!
<< hello world!
whoami
<< aiW_1pW3z1nVphxDAAAD
cowsay
<<
______
< Moo! >
------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
exit
-----------------------------------
To get started with the demo, follow these steps:
- Clone the repository with submodules recursively:
git clone --recurse-submodules https://github.com/Jabolol/apricot.git .
- Create a build directory and navigate into it:
mkdir build
cd build
- Generate the build files using CMake:
cmake ..
- Initialize the server by running the following command in one terminal:
deno run -A www/main.ts
- In another terminal, run the compiled Apricot executable:
./apricot
- Type
help
to see a list of available commands.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.