UNPKG

spray-wrtc

Version:

Adaptive random peer-sampling protocol running on top of WebRTC

18 lines (15 loc) 388 B
'use strict' /** * Exception threw when the joining phase of Spray does not work as intended. */ class ExJoin { /** * @param {string} source The name of the function that threw the exception. * @param {string} reason The reason the joining failed. */ constructor (source, reason) { this.source = source this.message = reason }; }; module.exports = ExJoin