eventemitter not having any listeners on websocket
Hi,
I have a app router project with TRPC but I created a websocket server alongside and a websocket client with the approuter and usecontext modified to work,
the problem is that first of all (i don't know if this is normal) it says there are two connections when i load a page
the next problem is that nothing gets emitted back from if i access a query diretly on my browser which is supposed to (as a test) send data back to the client.
the problem in the WS is that there are two weird responses which i don't understand
This is my code
and this is what i have in the client
I have a app router project with TRPC but I created a websocket server alongside and a websocket client with the approuter and usecontext modified to work,
the problem is that first of all (i don't know if this is normal) it says there are two connections when i load a page
the next problem is that nothing gets emitted back from if i access a query diretly on my browser which is supposed to (as a test) send data back to the client.
the problem in the WS is that there are two weird responses which i don't understand
This is my code
and this is what i have in the client
