# ConnectorEvent
Source: https://docs.maelstrom-ai.co/dev/reference/client/type-aliases/connectorevent/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **ConnectorEvent** = { `clean`: `boolean`; `message`: `string`; `retryable?`: `boolean`; `type`: `"disconnected"`; } | { `error`: `Error`; `type`: `"error"`; }

Defined in: [packages/client/src/lib/connection-manager/connector.types.ts:113](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connector.types.ts#L113)

Transport-level events emitted by a connector via `subscribe()`.

These are the only events the ConnectionManager needs from a connector:

-   `'disconnected'`: the transport closed, cleanly or unexpectedly.
-   `'error'`: a transport-level error occurred (distinct from a disconnection).

There is intentionally no `'connected'` event. `connect()` resolving is the signal that the connection is ready — no separate subscription needed.
