Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
ambergristle
Posts
Comments
H
Hono
•
Created by veeque on 1/7/2025 in
#help
Best way to export types for use in a separate app with `hc` client
idk that it really matters as long as it's clear + consistent w the app architecture overall
3 replies
H
Hono
•
Created by veeque on 1/7/2025 in
#help
Best way to export types for use in a separate app with `hc` client
a shared
types.d.ts
seems like a good place to start
3 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
i'm not familiar w WinterCG, but yeah, it looks like it's tackling the same problem from a different angle
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
if you continue to use hono, that'll become especially important when customizing primitives
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
but imo its helpful to see that X runtime requires more config, etc
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
i wouldn't say there's a need to fully understand what's going on
11 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
Type safety in middleware?
np!
12 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
Type safety in middleware?
yeah, i was just chatting w someone else who had the same issue
12 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
Type safety in middleware?
i remember seeing the response type from the middleware in the json and thinking "huh, ig that works after all"
12 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
Type safety in middleware?
ah yeah, my bad. definitely didn't read your snippets closely enough
12 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
i just took a look myself out of curiosity. its pretty striking how different the implementation requirements are for different runtimes. tbf, they're not unopinionated
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
runtimes aren't necessarily going to all support the same apis or behaviors, much less with the same syntax
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
in general, hono provides adapter layers for different runtimes in order to offer devs a runtime-agnostic experience
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
hono code is pretty clear and succinct
11 replies
H
Hono
•
Created by patwasalinguist on 1/1/2025 in
#help
What can Hono’s web socket helper do that Deno.upgradeWebSocket can’t?
i'd highly recommend taking a look at the hono source code, and comparing the implementations for different runtimes
11 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
OpenTelemetry?
i've had less success with their custom span method, but the api is simple enough
5 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
OpenTelemetry?
it does a good job of collecting and displaying hono traces though, including drizzle db logs
5 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
OpenTelemetry?
the core product is solid, though i've had mixed experiences
5 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
OpenTelemetry?
you could try fiberplane
5 replies
H
Hono
•
Created by Gary, el Pingüino Artefacto on 1/3/2025 in
#help
Type safety in middleware?
for just the types, you can use hono's
InferResponseType
utility type, which accepts an optional status code param that narrows the returned union
12 replies