38 using wsT = uWS::WebSocket<false, true, PerSocketData>;
41 CoinbasePublisher(
const json &config, slick::queue<Request> &request_queue, slick::queue<uint8_t> &market_data_queue);
46 void setup_routes(uWS::App &app)
override;
49 void handle_message(wsT *ws, std::string_view message);
56 void handle_close(wsT *ws,
int code, std::string_view message);
57 void send_error(wsT *ws,
const std::string& error_msg);
58 void unsubscribe_md(wsT *ws);
70 std::unordered_set<wsT*> clients_;
71 std::unordered_map<std::string, std::unordered_multimap<uint8_t, wsT*>> symbol_channel_client_;
72 std::array<std::unordered_map<std::string, std::unordered_set<wsT*>>, (uint8_t)coinbase::WebSocketChannel::_CHANNEL_COUNT_> subscription_info_;