#include <websocketpp/client.hpp>
#include <websocketpp/concurrency/none.hpp>
#include <websocketpp/config/asio_client.hpp>
+#define FILENAME "example90.txt"
/**
* A copy of the GDAX order book for the currency pair product given during
{
/*if(!myfile.is_open())
- myfile.open("example.txt");
+ myfile.open(FILENAME);
if(myfile.is_open())
{
myfile <<msg->get_payload().c_str()<<std::endl;
if(!myfile.is_open())
- myfile.open("example.txt");
+ myfile.open(FILENAME);
std::string line;
while ( std::getline(myfile,line) )
{
}
/* auto connection =
- m_client.get_connection("ws://fsdf.sdfj", errorCode);
+ m_client.get_connection("wss://ws-feed.gdax.com", errorCode);
if (errorCode) {
std::cerr << "failed websocketclient_t::get_connection(): " <<
errorCode.message() << std::endl;