Call this function to create a new mock server By default the server will listen on 127.0.0.1:9393
const mockServer = await createSftpMockServer({ port: "9999", hostname: "127.0.0.1", debug: (msg: string) => logger.debug(msg), users: { alice: { password: "password", publicKey: clientPublicKey } }})
a reference to the mock server
Optional
used to override the port and hostname that the server will listen on.
Generated using TypeDoc
Call this function to create a new mock server By default the server will listen on 127.0.0.1:9393
Returns
a reference to the mock server