Wave-Play / robo.js

Power up Discord with effortless activities, bots, servers, and more! ⚡
https://robojs.dev
MIT License
43 stars 22 forks source link

Refactor WebSocket Server to Enhance Connection Handling and State Management #326

Closed yuvraj1107thapa closed 2 weeks ago

yuvraj1107thapa commented 2 weeks ago

Summary

Refactored the WebSocket server to improve modularity and connection handling.

Changes Made

Impact

Improves performance, stability, and maintainability.

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2024 7:19am
Pkmmte commented 2 weeks ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

yuvraj1107thapa commented 2 weeks ago

I have read the CLA Document and I hereby sign the CLA.

yuvraj1107thapa commented 2 weeks ago

recheck

Pkmmte commented 2 weeks ago

Thanks for this PR! I love new the clean look. ✨

Just made two small adjustments. The key param in broadcastUpdate should be an optional string[] rather than string. The cleanKey is already the pure string version and key is meant to be an array for a useEffect-like dependencies array syntax.

Other than that, I also made two other minor adjustments for our syntax preference. (heartbleed ptsd & optional chaining)