src/index.js
/**
 * Construct a GraphQL connection rejection message.
 * @constructor
 * @augments OperationMessageFromServer
 * @param {object} payload - Error
 * @returns {ConnectionErrorMessage}
*/
Construct a GraphQL connection rejection message.
@constructor
@augments OperationMessageFromServer
@param {object} payload - Error
@returns {ConnectionErrorMessage}
Construct a GraphQL connection rejection message . @constructor @augments OperationMessageFromServer @param { object } payload - Error @returns { ConnectionErrorMessage }
function ConnectionErrorMessage(payload) {
    if (this instanceof ConnectionErrorMessage) {
        OperationMessageFromServer.call(this, "connection_error");
        Object.defineProperty(this, "payload", {
            enumerable: true,
            configurable: false,
            value: payload
        });
    } else {
        return new ConnectionErrorMessage(payload);
    }
}
function ConnectionErrorMessage ( payload ) { if ( this instanceof ConnectionErrorMessage ) { OperationMessageFromServer . call ( this , "connection_error" ) ; Object . defineProperty ( this , "payload" , { enumerable : true , configurable : false , value : payload } ) ; } else { return new ConnectionErrorMessage ( payload ) ; } }
Construct a GraphQL connection rejection message.
Construct a GraphQL connection rejection message .