This repo shows:
- Use of comlink and web worker to offload Socket connection handling.
- Use of
requestAnimationFrameto managesetState(or batch update) within max FPS.
First, install the dependencies:
yarn installDefine .env.localhost
# .env.local
NEXT_PUBLIC_BOOK_WS_URL=wss://www.cryptofacilities.com/ws/v1Run the development server:
yarn devOpen http://localhost:3000 with your browser to see the result.
Please refer to docs/README.md
