(ctx: DurableObjectState, env: Env)
| 42 | // static options = { hibernate: true } |
| 43 | |
| 44 | constructor(ctx: DurableObjectState, env: Env) { |
| 45 | super(ctx, env) |
| 46 | this.env = env |
| 47 | this.db = getDb(this) |
| 48 | } |
| 49 | |
| 50 | // a small typesafe wrapper around connection.send |
| 51 | sendMessage<M extends ServerMessage>(connection: Connection, message: M) { |