elysiajs / elysia-trpc

A plugin for Elysia that add support for using tRPC
MIT License
20 stars 17 forks source link

chore: support elysia 0.7 #9

Closed amokio closed 11 months ago

amokio commented 11 months ago

I believe only one subscription per Client is supported before, and only work for single client.

example:

client1 -> subscribe -> test {id: 1, method: "subscription",…} client2 -> subscribe -> test {id: 1, method: "subscription",…}

Client2 will override observers { 1: Unsubscribable }, Here may have memory leak and the observer still listener on event emitter.