Session Connected
Emitted by the server when a browser session has fully initialized and is ready to accept commands.
Payload
{
"event": "session.connected",
"data": {
"sessionId": "ses_k8m2n4p6",
"timestamp": "2026-06-23T15:00:01Z",
"capabilities": {
"stealth": true,
"proxy": { "type": "residential", "country": "US" },
"viewport": { "width": 1920, "height": 1080 }
}
}
}
Usage
ws.on('message', (raw) => {
const msg = JSON.parse(raw);
if (msg.event === 'session.connected') {
console.log(`Session ${msg.data.sessionId} is ready`);
}
});