Sample Windows Desktop application that implements a minima WebSocket client using the boost::beast
framework.
- 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)
- Clone this repository.
- Enter the cloned directory.
- Restore the NuGet dependencies.
NuGet.exe restore
- Restore NPM dependencies.
npm.exe install
- Build the project.
MSBuild.exe
- Start the server.
node WebSocketSample\Server.js
- Run the client.
x64\Debug\WebSocketSample.exe
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.