Padloc Logo Docs & Resources

Class: DirectSender

transport.DirectSender

Stub implementation of the Sender interface, passing requests directly into a Server instance. this is useful for testing, where client and server instances are managed by the same process

Implements

Constructors

constructor

new DirectSender(server)

Parameters

Name Type
server Server

Defined in

core/src/transport.ts:87

Methods

send

send(req): Promise<Response>

Parameters

Name Type
req Request

Returns

Promise<Response>

Implementation of

Sender.send

Defined in

core/src/transport.ts:89