Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get_state_sync(options: IStateOptions = {}) {
const models = [];
for (let model of this._modelsSync.values()) {
if (model.comm_live) {
models.push(model);
}
}
return serialize_state(models, options);
}