Conversation
- Implemented core UHST signaling endpoints: host, join, ping, SSE, and send message. - Used local files in 'data/' directory for session and message coordination. - Ensured concurrency safety using flock() for all file access. - Implemented SSE stream with keep-alive and immediate flushing. - Added input sanitization to prevent path traversal attacks. - Included automatic cleanup of expired session files. Co-authored-by: dimitrovs <200772+dimitrovs@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Switched from file-based coordination to MySQL database for state and queuing. - Implemented stateless JWT-based token system (HMAC-SHA256). - Used PDO with prepared statements for secure database access. - Added support for SQLite as a fallback for testing/low-traffic environments. - Implemented SSE with 5-second heartbeats and 20ms polling for low latency. - Added automatic schema initialization and cleanup of stale records. - Included `schema.sql` for manual database setup. Co-authored-by: dimitrovs <200772+dimitrovs@users.noreply.github.com>
Implemented a lightweight, dependency-free UHST (User Hosted Session Traversal) relay server in PHP. The implementation uses local files for coordination and message queuing, making it suitable for deployment on shared hosting providers.
Key features:
data/directory.flock().tokenandhostIdto prevent path traversal.Fixes #1
PR created automatically by Jules for task 1410713233664337890 started by @dimitrovs