Skip to content

Instantly share code, notes, and snippets.

View debruss's full-sized avatar
👋

DeBruss debruss

👋
View GitHub Profile
@zaphoyd
zaphoyd / basic_client.cpp
Last active June 4, 2023 08:39
An example of a basic WebSocket++ client that sends a message, waits for a response, then closes the connection
#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <iostream>
typedef websocketpp::client<websocketpp::config::asio_client> client;
using websocketpp::lib::placeholders::_1;
using websocketpp::lib::placeholders::_2;