if(!(connectOptions.willMessageinstanceofMessage))thrownewError(format(_consts.ERROR.INVALID_TYPE,[connectOptions.willMessage,'connectOptions.willMessage']));// The will message must have a payload that can be represented as a string.
if(!(connectOptions.willMessageinstanceofMessage))thrownewError((0,_utils.format)(_consts.ERROR.INVALID_TYPE,[connectOptions.willMessage,'connectOptions.willMessage']));// The will message must have a payload that can be represented as a string.
// Cause the willMessage to throw an exception if this is not the case.