Skip to content

Commit

Permalink
include default events info in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hpx7 committed Oct 18, 2022
1 parent 143bcb3 commit 9310893
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/builder/hathora-yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9310893

Please sign in to comment.