Switch to yarn

This commit is contained in:
Jonathan Staab
2023-07-07 16:34:44 -07:00
parent b74f2e8e3d
commit 46470aabe4
6 changed files with 2672 additions and 8564 deletions
+3 -3
View File
@@ -4,11 +4,11 @@ export class Relay {
constructor(socket) {
this.socket = socket
this.bus = new EventBus()
this.listeners = sockets.map(socket => {
return socket.bus.addListener('message', (url, [verb, ...payload]) => {
this.listeners = [
socket.bus.addListener('message', (url, [verb, ...payload]) => {
this.bus.emit(verb, url, ...payload)
})
})
]
}
get sockets() {
return [this.socket]