Add memoize and batcher, bump versions

This commit is contained in:
Jon Staab
2024-08-12 11:17:27 -07:00
parent a8d0f5bc4f
commit 5d2186825b
15 changed files with 132 additions and 108 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import {Emitter} from '@welshman/lib'
import type {TrustedEvent} from '@welshman/util'
import {Relay, LOCAL_RELAY_URL} from '@welshman/util'
import type {Message} from '../Socket'
export class Local extends Emitter {
constructor(readonly relay: Relay) {
export class Local<T extends TrustedEvent> extends Emitter {
constructor(readonly relay: Relay<T>) {
super()
relay.on('*', this.onMessage)