-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
# Hono DO Batcher | ||
|
||
This example is a batcher using Durable Object's Alarm API. | ||
The code is based on [Cloudflare's Alarm example](https://developers.cloudflare.com/durable-objects/api/alarms-in-durable-objects). | ||
|
||
``` | ||
npm run deploy | ||
pnpm install | ||
pnpm dev | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
# Hono DO Chat | ||
|
||
This example is a simple chat app. Save sessions to in-memory map. | ||
If you want to make strict to hibernate, you can see [examples/hibernatable-chat](../hibernatable-chat). | ||
|
||
|
||
``` | ||
npm run deploy | ||
pnpm install | ||
pnpm dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
# Hono DO Counter (with Storage Helper) | ||
|
||
This example is a counter app with storage helper. | ||
[Counter example](../counter)'s rewrite with storage helper. | ||
|
||
``` | ||
npm run deploy | ||
pnpm install | ||
pnpm dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
# Hono DO Counter | ||
|
||
This example is a simple counter app. | ||
The code is based on [Cloudflare's Counter example](https://developers.cloudflare.com/durable-objects/examples/build-a-counter/). | ||
|
||
|
||
``` | ||
npm run deploy | ||
pnpm install | ||
pnpm dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
# Hono DO Chat (hibernatable) | ||
|
||
This example is a hibernatable chat app. | ||
The code using [Hibernate Websocket API](https://developers.cloudflare.com/durable-objects/learning/websockets/#websocket-hibernation) for hibernation of Durable Objects. | ||
|
||
``` | ||
npm run deploy | ||
pnpm install | ||
pnpm dev | ||
``` |