DaniFoldi
DaniFoldi
CDCloudflare Developers
Created by Alex Patterson on 1/27/2025 in #workers-help
Correct TypeScript from WorkerEntrypoint Binding
There's a separate type for RPC services, Service<Users> in this case, if you import type Users from './other.ts' The way I usually have them would be USERS: Service<import('other-service').default> as inline type imports
2 replies
CDCloudflare Developers
Created by dandoen on 1/15/2025 in #durable-objects
hi folks,
it depends on your use case, which one I'd use, if you need to get the connections (eg to forward messages) by user id, you could add a tag userid:<actual id> to the websocket when they connect, but if you only find out later, you can add it to the attachment (although you can't use it later for listing that efficiently)
6 replies
CDCloudflare Developers
Created by dandoen on 1/15/2025 in #durable-objects
hi folks,
Hey, you can store an attachment on each connection (up to 2048 bytes): https://developers.cloudflare.com/durable-objects/best-practices/websockets/#extended-methods which you can serialize and deserialize any time, and these get saved with the hibernated ws, and you also have the tags which you can set when you create the connection and then retrieve later using getTags
6 replies
CDCloudflare Developers
Created by danielgamerking on 1/10/2025 in #general-help
Cloudflare Tunnel Domain
you can but not under the same entry
9 replies
CDCloudflare Developers
Created by danielgamerking on 1/10/2025 in #general-help
Cloudflare Tunnel Domain
No description
9 replies
CDCloudflare Developers
Created by danielgamerking on 1/10/2025 in #general-help
Cloudflare Tunnel Domain
ah I was wrong you can't add other hostnames to this - so you'll need to add another public hostname as www.domain.com, just like you did the first one
9 replies
CDCloudflare Developers
Created by danielgamerking on 1/10/2025 in #general-help
Cloudflare Tunnel Domain
In the tunnel settings, look for "Public hostname"
9 replies
CDCloudflare Developers
Created by danielgamerking on 1/10/2025 in #general-help
Cloudflare Tunnel Domain
Hey :meowwave: The CNAME record will make the domain resolve to the same IP, so it will reach the same server (Cloudflare in this case), but for tunnels, you need to tell Cloudflare that www.domain.com should also be routed to your tunnel. You can add it as an additional hostname to the same application (up to 5 iirc) and it should start working 💯
9 replies
CDCloudflare Developers
Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
You can try opening an issue on GitHub on the workerd repo, since it is a fair question in my opinion, and the team might have a better answer for you
17 replies
CDCloudflare Developers
Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
Sorry I missed your reply - unfortunately I don’t think there’s a good way since it’s stored as a byte stream, not a stringified (base64 or otherwise) version. They don’t have a built-in api since the exact encoding isn’t guaranteed and “should be transparent to the user”
17 replies
CDCloudflare Developers
Created by Agent on 12/16/2024 in #general-help
Hard time contacting Galileo team
got a ticket id for example you could share so they will know where to look?
6 replies
CDCloudflare Developers
Created by Agent on 12/16/2024 in #general-help
Hard time contacting Galileo team
Hey, I've forwarded your message, unfortunately no guarantees but I can't help in any other way unfortunately
6 replies
CDCloudflare Developers
Created by Lukas on 12/17/2024 in #workers-help
Hyperdrive database host string too short?
this is maybe a question for @thomasgauvin :MeowHeartCloudflare:
7 replies