Odiel
Odiel
TtRPC
Created by Odiel on 11/17/2024 in #❓-help
What is wrong with my subscription setup?
found a solution looking at Deno blog https://deno.com/blog/build-typesafe-apis-trpc, importing
import { createHTTPServer } from "@trpc/server/adapters/standalone";
import { createHTTPServer } from "@trpc/server/adapters/standalone";
solved the problem
10 replies
TtRPC
Created by Odiel on 11/17/2024 in #❓-help
What is wrong with my subscription setup?
nothing else happens after that
10 replies
TtRPC
Created by Odiel on 11/17/2024 in #❓-help
What is wrong with my subscription setup?
> deno run -A .\src\client.ts
>> subscription #1 example { input: undefined }
<< subscription #1 example {
input: undefined,
result: { result: { type: "state", state: "connecting", error: null } },
elapsedMs: 1
}
👌 should be a clean exit if everything is working right
> deno run -A .\src\client.ts
>> subscription #1 example { input: undefined }
<< subscription #1 example {
input: undefined,
result: { result: { type: "state", state: "connecting", error: null } },
elapsedMs: 1
}
👌 should be a clean exit if everything is working right
this is the client output
10 replies
TtRPC
Created by Odiel on 11/17/2024 in #❓-help
What is wrong with my subscription setup?
I ran this from the CLI not the browser
10 replies
TtRPC
Created by Odiel on 11/17/2024 in #❓-help
What is wrong with my subscription setup?
nope 😦
10 replies