Skip to content

Commit

Permalink
chore: update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Nov 30, 2023
1 parent c95739e commit 2355df5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changeset/three-actors-develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,16 @@ generateHonoObject("/", () => {})
.webSocketError(async () => {});
```

### Argument way

```ts
generateHonoObject("/", () => {}, {
alarm: async () => {},
webSocketMessage: async () => {},
webSocketClose: async () => {},
webSocketError: async () => {},
});
```

Take care for registering multiple handlers for same event.
If you register so, you will get an error.

0 comments on commit 2355df5

Please sign in to comment.