like not that I set it as undefined, what's even the point of it being there
like not that I set it as undefined, what's even the point of it being there
DurableObjectId, which is used both on the caller side of the RPC and inside the DO. In the caller side the .name will be populated correctly. The fact it's not populated inside the DO is a long-term known bug.firstDO.index() and secondDO.index() to get the list of the items. but I want to include the name of the DO in the list. Ideally it could be done within the index() function and not after..name propertysetIdentifier every time they "get" an Actor instance (which is a Durable Object) and refer to this.identifier rather than try to parse the name out of the id. It's very little code and works the same in dev and production.I'm basically using all RPC calls I thinkI hear people say this and I always wonder how users enter the system? It's got to be HTTP or WebSockets, no?
firstDO.withIdentifier('user:123').index()fetch() method for handling the websockets.fetch () and routing it that wayBindDurableObjectMiddleware is what sets the DO to c.var.notifications
script_name option for local dev, the generated binding lacks a type parameter, usually provided to the namespace generic, ie.sendBatch, etc), what should happen? Should it just deadlock/timeout?If I have a transaction going on with SQLiteWhat do you mean by this? How do you have it going? Is it an implicit transaction, or do you use the
transaction()/transactionSync() functions?.name.namefirstDO.index()secondDO.index()index()setIdentifierthis.identifierfirstDO.withIdentifier('user:123').index()fetch ()BindDurableObjectMiddlewarec.var.notificationsDOSTORE: DurableObjectNamespace /* DurableObjectStore from durables */;DOSTORE: DurableObjectNamespace<import("../.svelte-kit/cloudflare/_worker").DurableObjectStore>;sendBatchtransaction()/transactionSync() {
"tag": "v3",
"deleted_classes": [
"UserCreditsObject"
],
"new_sqlite_classes": [
"UserCreditsObject"
]
}app.get("/:id", HonoAuthMiddleware, BindDurableObjectMiddleware, async (c) => {
const id = c.req.param("id");
const notification = await c.var.notifications.get(id);
if (!notification) return c.body(null, 204);
return c.json(notification);
});