import { JobStatus } from '../../commons/types/job' ; import { io } from '../socket/socket' ; export function jobSocketRoom ( id ) { return `job.${ id }` ; } export function sendJobStatusToUi ( jobId , status ) { io . to ( jobSocketRoom ( jobId ) ) . emit ( `job.${ jobId }.status` , status ) ; }