diff --git a/src/bitcoinity_reader.cpp b/src/bitcoinity_reader.cpp index 46b9d7d..1e9c396 100644 --- a/src/bitcoinity_reader.cpp +++ b/src/bitcoinity_reader.cpp @@ -72,6 +72,10 @@ namespace { } void init_bitcoinity (WebsocketReader& ws, std::string_view exchange, std::string_view currency) { + //thanks to blueagain from #javascript libera.chat for helping figuring + //out the websocket address and the correct sequence of messages to + //initiate the communication properly. + //https://github.com/terrablue { ws.write(R"({"topic":"all","event":"phx_join","payload":{},"ref":"1"})"); auto resp = to_bitcoinity_message(ws.read());