* Parties can only be created once we have a request URL. * This method should be called when the durable object receives its * first connection, or is woken up from hibernation.
(requestUri: string)
| 575 | * first connection, or is woken up from hibernation. |
| 576 | */ |
| 577 | async initialize(requestUri: string) { |
| 578 | // these can be collapsed into a single method once we solve |
| 579 | // request url rehydration on alarm |
| 580 | this.#initializeParty(requestUri); |
| 581 | return this.#initializeWorker(); |
| 582 | } |
| 583 | |
| 584 | #initializeParty(requestUri: string) { |
| 585 | const url = new URL(requestUri); |
no test coverage detected