WebSocket


Mocking a WebSocket request is very simple and does not require any previous configuration. Just create the Scenarios and try a request to the described endpoint.

WebSocket Scenarios

This section describes the fields that are exclusive for WebSocket. For all other fields, please refer to Scenarios section.

Name Mandatory Description
key.pathTemplate true An url path that may contains path parameters but no query parameters (/users, /users/{id}). Query parameters should be checked on request.queryParams
request.pathParams false Path params that will be used to match the Scenario.
request.queryParams false Query params that will be used to match the Scenario.
callback.typeProperties.url true The URL pathTemplate that will be called by the callback.
callback.typeProperties.connectionId true The connectionId that will be used to send the callback.