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, request) → {Object}

Create the imposter

Parameters:
Name Type Description
Protocol Object

The protocol factory for creating servers of that protocol

request Object

the parsed imposter JSON

Source:
Returns:
Type
Object