Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 586 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 586 Bytes

websockets-cf-worker

A Cloudflare Worker that uses Durable Objects to serve WebSockets that forward indexer webhook data to connected clients.

This is used to refresh the UI when data changes.

Configuration

  1. Copy wrangler.toml.example to wrangler.toml.

  2. Configure secrets:

echo <VALUE> | npx wrangler secret put WEBHOOK_SECRET

Development

wrangler dev
# OR
npm run start

Deploy

wrangler publish
# OR
npm run deploy