From 93108936c6e58d16ccc4e07577bf5387ea8a8e34 Mon Sep 17 00:00:00 2001 From: Harsh Pandey Date: Tue, 18 Oct 2022 14:10:39 -0400 Subject: [PATCH] include default events info in docs --- docs/builder/hathora-yml.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/builder/hathora-yml.md b/docs/builder/hathora-yml.md index 73cbe413..2ae033e1 100644 --- a/docs/builder/hathora-yml.md +++ b/docs/builder/hathora-yml.md @@ -95,6 +95,13 @@ Which could then be used on the server like this: ctx.sendEvent(HathoraEvents.myEvent, { foo: "bar" }, userId) ``` +If omitted from `hathora.yml`, the `events` block defaults to the following: + +```yml +events: + default: string +``` + ## initializeArgs The optional `initializeArgs` key sets the `InitializeRequest` type for the `initialize` method. By default it is empty.