logging
parent
60f8c78180
commit
96d47a040c
|
@ -30,7 +30,7 @@ export default class Context {
|
||||||
|
|
||||||
public send(v: string) {
|
public send(v: string) {
|
||||||
console.log('writing or whateva');
|
console.log('writing or whateva');
|
||||||
this.socket.write(`${v.toString()}\n`, (err) => console.error(err));
|
this.socket.write(`${v.toString()}\n`, (err) => this.client.signale.error(`Error occurred while writing: ${err}`));
|
||||||
this.socket.destroy();
|
this.socket.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue