Debugging
Identify the failing stage without exposing launch context.
States
connection: connecting, authenticating, connected, ready, failed, disconnected. state: idle, running, paused, stopping, completed. Subscribe to error and ignored. Ignored messages expose a category without their raw JSON.
Browser
Check ES imports, MIME type, filename case and local resources. An open socket is not an accepted server.hello. Browsers may block ws:// from HTTPS pages; the public portal is not a production runtime.
Logs
Record game version, SDK version, phase and sanitized error code. Do not copy manifests, frame dumps or credentials into screenshots. SDK.log redacts its known token but is not a universal secret filter.
Reproduction
Reproduce in mock, then the wire test, then the installation. Specify the failing layer. Never fix transport by enabling demo.
Code example
Integration excerpt: game-specific variables belong to the application. Playground contains the runnable reference.
sdk.on('connection', state => showConnection(state));
sdk.on('error', error => showError(error.code));
sdk.on('ignored', event => countIgnored(event.reason));