this.outbound.build_todo(todo, ws, () => { ws.write(Buffer.from('This is the message body')); fs.fsync(fd, () => { ws.close(); }) })