Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async _create_comm(target_name: string, model_id: string, data?: any, metadata?: any): Promise {
let comm = await this.kernel.connectToComm(target_name, model_id);
if (data || metadata) {
comm.open(data, metadata);
}
return Promise.resolve(new base.shims.services.Comm(comm));
}
async _create_comm(target_name: string, model_id: string, data?: any, metadata?: any): Promise {
let comm = await this.kernel.connectToComm(target_name, model_id);
if (data || metadata) {
comm.open(data, metadata);
}
return Promise.resolve(new base.shims.services.Comm(comm));
}