Module: models/imposter

An imposter represents a protocol listening on a socket. Most imposter
functionality is in each particular protocol implementation. This module
exists as a bridge between the API and the protocol, mapping back to pretty
JSON for the end user.

Source:

Methods

(inner) create(Protocol, creationRequest, baseLogger, recordMatches, recordRequests, mountebankPort) → {Object}

Create the imposter

Parameters:
Name Type Description
Protocol Object

The protocol factory for creating servers of that protocol

creationRequest Object

the parsed imposter JSON

baseLogger Object

the logger

recordMatches Object

corresponds to the --debug command line flag

recordRequests Object

corresponds to the --mock command line flag

mountebankPort Object

the mountebank port for callback URLs from the imposter

Source:
Returns:
Type
Object