Skip to content

HandshakeIntent

HandshakeIntent = object & ResumeInfo | { type: "identify"; }

Defined in: packages/ws/src/session.ts:28

What the next connection must do.

A discriminated union rather than a boolean plus three nullable fields: the caller cannot reach for a session id on the identify branch, so “resume with an undefined session” is not a state this codebase can express.