La referencia de la API está disponible solo en inglés por ahora.

HandshakeRequest

interface
handshake.ts:37

Sent by a client immediately after WebSocket connection.

The hub validates the protocol version and responds with a HandshakeResponse. Connections that do not handshake within 5 seconds are terminated. Exactly one of store or extension must be present depending on the declared DevtoolsRole.

Properties

NameTypeDescription
authToken?stringShared secret proving this client is one the developer started.
extension?{ capabilities: ExtensionCapabilities; id: string; name: string }Present only when role is EXTENSION.
protocolVersionstringSemver protocol version the client supports.
roleDevtoolsRoleRole this client will assume.
store?{ capabilities: StoreCapabilities; id: string; name: string }Present only when role is STORE.
type"HANDSHAKE_REQUEST"