Add auto reconnection and re-authentication logic to `wsClient`. * **WebSocket Connection and Reconnection:** - Modify `createWSClient` to include reconnection logic. - Add `connect` function to handle WebSocket connection and reconnection attempts. - Set `reconnectAttempts` and `maxReconnectAttempts` to manage reconnection attempts. - Implement exponential backoff for reconnection attempts. - Log error when maximum reconnection attempts are reached. * **Authentication:** - Add logic to re-authenticate using a token stored in `localStorage` upon WebSocket connection. - Set `isAuthenticated` flag based on re-authentication success. - Log error if re-authentication fails. * **Error Handling:** - Add `onerror` event handler to log WebSocket errors and close the connection. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MasterGordon/minesweeper/tree/v2?shareId=XXXX-XXXX-XXXX-XXXX). |
||
|---|---|---|
| .github/workflows | ||
| backend | ||
| public | ||
| shared | ||
| src | ||
| .gitignore | ||
| README.md | ||
| bad | ||
| bun.lockb | ||
| bunfig.toml | ||
| dev.ts | ||
| drizzle.config.js | ||
| eslint.config.js | ||
| index.html | ||
| package.json | ||
| tailwind.config.js | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
README.md
💣 Business Minesweeper
This is a version of minesweeper with a expanding board after each stage. This also includes a account system with match history, spectating live matches and collectables.
🚀 Local Development
For local development you are required to have bun installed.
# Create a .env file for token signing
echo "SECRET=SOME_RANDOM_STRING" > .env
bun install
bun run drizzle:migrate
bun dev
📦 Used Libraries
📋 Ideas
- Add global big board
- Questinmark after flag
- Earn points for wins
- Powerups