Skip to content
zaphoyd edited this page Jan 16, 2012 · 4 revisions

This page will include documentation for the example programs included with WebSocket++

Example Description
echo_server echo_server accepts incoming WebSocket connections and echoes all messages sent to it by clients. Included is an HTML/JavaScript client that can be used with a WebSocket enabled browser to talk to the server.
echo_client echo_client connects to a WebSocket server and echoes all messages the server sends
echo_server_tls echo_server_tls is identical to echo_server except it is built with TLS support (allowing either ws or wss connections based on a command line flag). It also responds to regular HTTPS requests with a canned page for the purposes of demonstrating HTTP passthrough and accepting/whitelisting self signed SSL certificates.
fuzzing_client fuzzing_client is a work in progress designed to replicate the AutoBahn 9.x tests in C++ to enable accurate performance testing of implementations faster than AB.
fuzzing_server_tls Incomplete
broadcast_server_tls Similar to echo_server except that it broadcasts messages to all clients rather than echoing only to the source client. This server can be run in regular or TLS mode based on a command line flag and has a Javascript admin client. Includes a message acknowledgement timer when used with supported clients.
stress_client stress_client is used to launch multiple connections to a WebSocket server for performance or stress testing. It implements the message acknowledgement functionality needed for broadcast_server_tls’ acknowledgement timer.
chat_server Basic example chat server built using WebSocket++. Includes HTML/JavaScript client.
chat_client Basic example command line chat client that works with chat_server.