The CP's in the mappings for things like Constructor/Switcher/... should be able to take an optional param, call it json_client_state_t that is essentially a std::any. This will allow them to pass state to those callables in order to better do things like use message types to select variants.
The CP's in the mappings for things like Constructor/Switcher/... should be able to take an optional param, call it json_client_state_t that is essentially a std::any. This will allow them to pass state to those callables in order to better do things like use message types to select variants.