API reference › @evolu/common › Worker › testCreateMessageChannel
function testCreateMessageChannel<Input, Output>(): TestMessageChannel<
Input,
Output
>;
Defined in: packages/common/src/Worker.ts:376
Creates an in-memory MessageChannel for testing.
Messages are queued until onMessage is assigned, matching the browser
MessagePort behavior where the port message queue starts disabled.
Both ports are registered in the native port registry so testCreateMessagePort can look them up by their native token.