Typescript client - #29
Open
nickhart wants to merge 4 commits into
Open
Conversation
Features: - Complete REST API coverage for authentication, players, games, and sessions - Real-time WebSocket support with automatic reconnection - Full TypeScript type definitions and IntelliSense support - Comprehensive test suite with 81% coverage (29 test cases) - Isomorphic design works in Node.js and browsers - Event-driven architecture for real-time game updates Package structure: - /src: TypeScript source code with types, client class, and exports - /tests: Complete test suite with unit, integration, and WebSocket tests - /dist: Compiled JavaScript output with type definitions - Documentation and configuration for npm publishing Ready for use in React Connect 4 game and other multiplayer applications. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Documentation added: - REACT_INTEGRATION.md: Complete integration patterns and examples - examples/react-hooks.tsx: Production-ready React hooks for game development - Updated README.md with monorepo usage and Claude integration notes Features for future Claude sessions: - Copy-paste React hooks (useGameClient, useGameSession, useGames, useGameHelpers) - Complete Connect 4 integration example - Context provider patterns for larger apps - Error handling and TypeScript type usage - Monorepo installation instructions - Architecture notes explaining REST + WebSocket hybrid pattern This provides everything needed for Claude to integrate the client into React apps without needing to understand the internal implementation details. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
📦 Dependency Status CheckChecking for outdated dependencies... ✅ All dependencies are up to date! Note: This is for information only and does not block merging. Updates are handled automatically by Dependabot. |
properly wrap game_session payloads implement some admin commands
📦 Dependency Status CheckChecking for outdated dependencies... ✅ All dependencies are up to date! Note: This is for information only and does not block merging. Updates are handled automatically by Dependabot. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
With a little help from Claude I added a typescript client. My hope is to test this out with a new typescript/React game I'm working on, and validate the websocket functionality is working. No more polling for updates!
Type of change
How Has This Been Tested?
Checklist: