Skip to content

Commit

Permalink
fixup! Hardcode ws hibernation event type in workerd
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowYarker committed Jun 20, 2023
1 parent 2ae6ff0 commit 617316a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/server/server.c++
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ public:
Worker::Lock lock(*service.worker, asyncLock);
// We define this event ID in the internal codebase, but to have WebSocket Hibernation
// work for local development we need to pass an event type.
uint16_t hibernationEventTypeId = 8;
static constexpr uint16_t hibernationEventTypeId = 8;
auto newActor = kj::refcounted<Worker::Actor>(
*service.worker, nullptr, kj::str(id), true, kj::mv(makeActorCache),
className, kj::mv(makeStorage), lock, kj::mv(loopback),
Expand Down

0 comments on commit 617316a

Please sign in to comment.