I have been using these programs to work with parts of the Simple-WebSocket-Server library in Visual Studio 2015. Notice that SampleServer.cpp reads in a file called payload.txt, and then sends that payload when you send the 'm' command from the server, so you'll want to have a payload.txt in your working directory when you run it.
- Run both the client and the server.
- [server] Press
s<enter>
to start the server - [client] Press
s<enter>
to connect the client
- Be connected
- [server] Press
m
to send a message to all connected clients