You can send data after connecting like:
hubGroup->onConnection([](uWS::WebSocket *ws, uWS::HttpRequest req) { std::cout << "