forked from zaphoyd/websocketpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
zaphoyd edited this page Mar 10, 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. |
wsperf | General purpose websocket performance and stress testing suite. |
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. |
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. |