Socket Server — Control

Admin access

Set ADMIN_TOKEN in the environment to lock control APIs. Leave empty only for local/dev.

Process control

Pause rejects new socket connections; existing stay up. Resume accepts connections again. Restart / Stop disconnect everyone and exit the process (your host/PM2 may bring it back).

Active connections

Rooms