Isaac McFadyen | YYZ01

05/25/2023, 10:22 PM
> Hibernation does not persist WebSocket connections across code updates. If an event occurs for a hibernated Durable Object’s corresponding handler method, it will return to memory. This will call the Durable Object’s constructor, so it is best to minimize work in the constructor when using WebSocket hibernation. What exactly does this mean? Are these two seperate things (DO will not persist across code updates, oh also constructor will be re-called on each message) or the same thing (if it is evicted because of code update, constructor will be re-called?)