Replies: 1 comment
-
Did you solve it? What was causing the error to show up? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can anyone help whats going on here
System: OS: macOS 14.3 CPU: (8) arm64 Apple M1 Memory: 787.23 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.14.2 - /usr/local/bin/node npm: 8.5.0 - /usr/local/bin/npm Browsers: Chrome: 122.0.6261.94 Safari: 17.3 npmPackages: @tanstack/react-query: 4.35.3 => 4.35.3 @trpc/client: 10.45.0 => 10.45.0 @trpc/next: 10.45.0 => 10.45.0 @trpc/react-query: 10.45.0 => 10.45.0 @trpc/server: 10.45.0 => 10.45.0 next: ^13.5.6 => 13.5.6 react: 18.2.0 => 18.2.0 typescript: 5.1.3 => 5.1.3
I am attempting to use the trpc websockets and got everything setup EXCEPT subscriptions + useSubscriptions. I am getting the following error:
Here is my ws file that I import on the client: src/utils/ws.ts
Here is the code I am trying to use the useSubscription:
Here is my backend router: src/server/api/routers/websocket/chatWSRouter.ts
Here is my root.ts file: src/server/api/root.ts
When I invoke the streamChatbot it works and returns the result, I can print it through my awsWebsocket server, but when I go to grab the emittion within the chatWSRouter its not picking it up, I imagine because I am getting this in my client console:
Beta Was this translation helpful? Give feedback.
All reactions