diff --git a/.changeset/three-actors-develop.md b/.changeset/three-actors-develop.md index e0c95f7..492f7c8 100644 --- a/.changeset/three-actors-develop.md +++ b/.changeset/three-actors-develop.md @@ -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.