testing/transports/ws_client.ts view source
(parsed: unknown, received: unknown[], waiters: WsWaiter[], on_request: WsRequestResponder | undefined, reply: (message: unknown) => void): void import {deliver_inbound} from '@fuzdev/fuz_app/testing/transports/ws_client.js'; Deliver one parsed inbound frame to a client's receive sink — the shared parse→(respond|push)→resolve core.
A server-initiated request ({method, id}) is answered by
on_request when supplied (replying via reply) and is not
surfaced as a normal message; everything else — notifications, replies
to the client's own requests, and non-JSON frames — is pushed onto
received and resolves any matching waiters, exactly as before. With
no on_request, every frame (including a server-initiated request)
flows to the sink unchanged, so the seam is purely additive.
parsed
unknownreceived
unknown[]waiters
WsWaiter[]on_request
WsRequestResponder | undefinedreply
(message: unknown) => voidreturns
void