public void UpdateSettings(Settings settings) { _worker.postMessage(new { cmd = "updateSettings", settings = settings.ToJson() }); }