🍪 Chaos Clicker Multiplayer API
Base Socket.IO URL:
https://https://szabfun-backend.onrender.com/chaos-clicker/socket.io
This API uses Socket.IO for real-time server-wide events in the Chaos Clicker game.
Connect
Connect to the Socket.IO server using the custom path:
const socket = io("https://https://szabfun-backend.onrender.com", { path: "/chaos-clicker/socket.io" });
Server Events
-
chaos-event
Sent by server when a global event occurs. All connected clients receive this.{ name: "Server Lag" | "Great-Grandma" | "Shaking Hands", description: string, type: "lag" | "great-grandma" | "shaking-hands" }
- Server Lag: Clicks and auto-cookies are reversed for 30 seconds.
- Great-Grandma: 2x time multiplier for 60 seconds (stacks with Grandma).
- Shaking Hands: 0.5x click multiplier for 60 seconds and screen shakes.
Client Events
-
No custom client events.
The client only listens forchaos-event
and updates the UI/gameplay accordingly.
Gameplay & Event Effects
- Server Lag: For 30 seconds, clicking or auto-cookies will subtract instead of add cookies.
- Great-Grandma: For 60 seconds, your time multiplier is doubled (stacks with Grandma upgrades).
- Shaking Hands: For 60 seconds, your click multiplier is halved (0.5x), and the screen shakes periodically.
-
Event Notification: When an event occurs, a notification with a countdown
appears, and
event.mp3
is played.