Lines Matching refs:child
9 constructor(child, key) {
12 this.child = child;
13 child.once('exit', () => this.emit('exit', this));
19 if (!this.child.connected) return onclose();
20 this.child._send(msg, undefined, swallowErrors);
23 self.child.removeListener('internalMessage', onreply);
29 self.child.removeListener('disconnect', onclose);
30 self.child.removeListener('internalMessage', onreply);
35 this.child.once('disconnect', onclose);
36 this.child.on('internalMessage', onreply);
60 constructor(child, key) {
65 this.child = child;
68 if (!self.child.connected) return;
70 self.child._send({
76 this.child.on('internalMessage', (msg) => {
86 if (!this.child.connected) return;
87 this.child._send({