constructor
The constructor is used to create the Durable Object that will synchronize the TinyBase clients.
new WsServerDurableObject<Env>(
ctx: DurableObjectState,
env: Env,
): WsServerDurableObject<Env>
Type | Description | |
---|---|---|
ctx | DurableObjectState | The DurableObjectState context. |
env | Env | The DurableObjectState environment. |
returns | WsServerDurableObject<Env> | A new instance of the |
For basic TinyBase synchronization and persistence, you don't need to override this method, but if you do, ensure you call the super
constructor with the two parameters.
Since
v5.4.0