Coder Social home page Coder Social logo

websocket-server-demo's Introduction

C++ WebSocket Server Demo

This is a little demo project that implements a C++ server using the WebSocket++ WebSocket library. It was originally created for a Club++ Workshop, and is provided here so that it might be used as the basis for future projects that require WebSocket server functionality.

Dependencies

The following libraries are bundled in the source tree, under the server/external directory:

When compiling under MinGW, Boost.Thread is also required, due to a bug in MinGW that prevents WebSocket++ from using C++11 functionality alone (see this StackOverflow post for details.)

Building the server

Building the server requires a recent version of the CMake build system. To build the server, invoke the following commands in the server directory:

cmake .
cmake --build .

When compiling with Visual Studio under Windows, these command need to be run from the "Visual Studio Native Tools Command Prompt", which includes the neccessary build tools in the PATH.

License

The bundled libraries are each covered by their own licenses:

  • WebSocket++ - BSD 3-Clause License (see server/external/LICENSE/websocketpp.txt)
  • Asio - Boost Software License (see server/external/LICENSE/asio.txt)
  • JsonCpp - Public Domain / MIT License (see server/external/LICENSE/jsoncpp.txt)

All of the remaining code is licensed under the MIT License. See the file LICENSE for details.

websocket-server-demo's People

Contributors

adamrehn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.