parent
3ebfe51a83
commit
b5a81d51ab
|
@ -166,7 +166,7 @@ export class Socket extends EventEmitter {
|
||||||
callModule(DHT_MODULE, "write", { id: this.id, message });
|
callModule(DHT_MODULE, "write", { id: this.id, message });
|
||||||
}
|
}
|
||||||
|
|
||||||
close(): void {
|
end(): void {
|
||||||
callModule(DHT_MODULE, "socketExists", { id: this.id }).then(
|
callModule(DHT_MODULE, "socketExists", { id: this.id }).then(
|
||||||
([exists]: ErrTuple) => {
|
([exists]: ErrTuple) => {
|
||||||
if (exists) {
|
if (exists) {
|
||||||
|
|
Loading…
Reference in New Issue