rename this._push to this._onmessage and use it internally.

This commit is contained in:
fiatjaf
2023-12-22 10:54:03 -03:00
parent 6152238d65
commit f719d99a11
2 changed files with 6 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ const runWith = (relay: AbstractRelay) => async () => {
},
})
for (let e = 0; e < messages.length; e++) {
relay._push(messages[e])
relay._onmessage({ data: messages[e] } as any)
}
})
}