You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -72,16 +72,7 @@ If you do not use JavaScript or TypeScript, you will need a [shim](https://devel
72
72
73
73
Your `MyDurableObject` class will have a constructor with two parameters. The first parameter, `ctx`, passed to the class constructor contains state specific to the Durable Object, including methods for accessing storage. The second parameter, `env`, contains any bindings you have associated with the Worker when you uploaded it.
@@ -90,30 +81,13 @@ export class MyDurableObject extends DurableObject<Env> {
90
81
}
91
82
}
92
83
```
93
-
94
-
</TabItem> </Tabs>
84
+
</TypeScriptExample>
95
85
96
86
Workers communicate with a Durable Object using [remote-procedure call](/workers/runtime-apis/rpc/#_top). Public methods on a Durable Object class are exposed as [RPC methods](/durable-objects/best-practices/create-durable-object-stubs-and-send-requests/) to be called by another Worker.
0 commit comments