https://github.com/sor4chi/hono-do-chat
https://github.com/sor4chi/hono-do-chat
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sor4chi/hono-do-chat
- Owner: sor4chi
- Created: 2023-09-15T01:58:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-15T02:37:08.000Z (over 1 year ago)
- Last Synced: 2025-02-06T05:44:19.623Z (3 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# so simple usage of Durable Object + Hono
Multi client chat app using Durable Object (WebSocket).
1. Create a Durable Object Namespace
```bash
touch wrangler.toml
```Write the following to wrangler.toml
```toml
name = "workers-websocket-do"
compatibility_date = "2023-01-01"
[durable_objects]
bindings = [{ name = "WEBSOCKETDO", class_name = "WebSocketDO" }][[migrations]]
tag = "v1"
new_classes = ["WebSocketDO"]
```2. Install dependencies
```
bun install
bun dev
```3. Deploy
```
bun run deploy
```