Summary

Sample Windows Desktop application that implements a minima WebSocket client using the boost::beast framework.

Requirements

  • Visual Studio 2017
    • VC++ 2017 v141 toolset (x86, x64)
    • Windows 10 sDK (10.0.16299.0) for Desktop C++ [x86 and x64]
  • NuGet package manager
  • Node.js (includes NPM)

Instructions

  1. Clone this repository.
  2. Enter the cloned directory.
  3. Restore the NuGet dependencies.
    NuGet.exe restore
  4. Restore NPM dependencies.
    npm.exe install
  5. Build the project.
    MSBuild.exe
  6. Start the server.
    node WebSocketSample\Server.js
  7. Run the client.
    x64\Debug\WebSocketSample.exe

Bug

The client should print the message FROM_SERVER. Intead, it prints a message sent when the client connects to the server, which should be discarded.