Skip to content

Interface: ConnectOptions

Makaio Framework


Makaio Framework / bus-core / ConnectOptions

Defined in: ../../../packages/bus-core/src/types/bus.ts:80

Options for IMakaioBus.connect.

optional awaitReady?: boolean

Defined in: ../../../packages/bus-core/src/types/bus.ts:92

Whether to await subscribe-sync readiness after connecting (default: true).

When true, connect() resolves only after all transports have completed the subscribe-sync handshake (transport.ready), guaranteeing remoteRequestHandlers is fully populated before any request dispatch.

Set to false to resolve as soon as sockets are open. Useful when the caller needs the socket open for a custom handshake before subscribe-sync.

true