How jcpsimmons/poker works
Main Components
a. Client Components (Left Side):
• UI Module (from ui/*.go files)
• Components
• Connections
• Utils
• Multiple client instances to indicate multi-user support
b. Server Component (Right Side):
• WebSocket Server (from server/server.go)
• Message Handler (from messaging/messaging.go)
• Port 8080 notation
c. Communication Layer (Middle):
• WebSocket connections (ws:// or wss://)
• Optional NgRok tunnel for external access
Component Relationships
• Bidirectional WebSocket communication between clients and server
• Message flow through the system
• Host client's special control capabilities
• Optional NgRok tunnel routing
Specific Implementation Details
🔷 Client Component
🔶 Server Component
↔️ WebSocket Communication
🔐 Host Controls
[Client Layer]
• ↕️ WebSocket (ws:// or wss://)
[Optional NgRok Layer]
• ↕️ WebSocket
[Server Layer]
Important Notes
• Lightweight nature of the application
• Types package (types/types.go) as a shared component between client and server
• Port configuration (8080 default)
• Both local network and internet-facing deployment options
• Messaging protocol flow
Technical Details to Highlight
• WebSocket-based real-time communication
• Terminal-based user interface
• Host/Client role separation
• Message passing system
• State management