UNPKG

spray-wrtc

Version:

Adaptive random peer-sampling protocol running on top of WebRTC

20 lines (17 loc) 435 B
'use strict' /** * Spray encountered a problem with a message. */ class ExMessage { /** * @param {string} source The name of the function that threw. * @param {object} message The incriminated message. * @param {string} reason The reason of the throw. */ constructor (source, message, reason) { this.source = source this.message = message this.reason = reason }; }; module.exports = ExMessage