mockttp
    Preparing search index...

    Class RejectWebSocketStep

    The definition of a websocket rule step, which can be passed to Mockttp to define a rule.

    Implementation of the step is not included in the definition classes, but instead exists in an *Impl class defined separately and used internally.

    Hierarchy (View Summary)

    Implements

    Index
    body: string | Buffer<ArrayBufferLike> = ''
    headers: Headers = {}
    statusCode: number
    statusMessage: string = 'WebSocket rejected'
    type: "ws-reject" = 'ws-reject'
    isFinal: true