expose clientSync to make it testable
add tests for clientSync
don’t use options.data to set the payload