Are you an LLM? You can read better optimized documentation at /documentation/api/testing/interfaces/TestHarness.md for this page in Markdown format
ws-asyncapi API / testing / TestHarness
Interface: TestHarness<C>
Defined in: .api-entries/testing/index.d.ts:18
Type Parameters
C
C extends AnyChannel
Properties
channel
channel:
C
Defined in: .api-entries/testing/index.d.ts:20
the channel under test
backplane
backplane:
Backplane
Defined in: .api-entries/testing/index.d.ts:22
the backplane the harness drives (publish to it to simulate other nodes)
Methods
connect()
connect(
options?):WsClient<InferClient<C>>
Defined in: .api-entries/testing/index.d.ts:24
open a typed client connected in-memory to the channel
Parameters
options?
Returns
WsClient<InferClient<C>>
close()
close():
Promise<void>
Defined in: .api-entries/testing/index.d.ts:26
disconnect all clients and close the backplane
Returns
Promise<void>