Add negentropy support to executor

This commit is contained in:
Jon Staab
2024-09-26 15:36:01 -07:00
parent bdf0e8b82c
commit 5627721463
18 changed files with 548 additions and 46 deletions
+16
View File
@@ -0,0 +1,16 @@
import {Emitter} from '@welshman/lib'
import type {Message} from '../Socket'
export class Echo extends Emitter {
get connections() {
return []
}
send(...payload: Message) {
this.emit(...payload)
}
cleanup = () => {
this.removeAllListeners()
}
}