function updateProgress(progress) {
  if (progress != lastProgress) {
    socketInstance.emit("share.progress", { progress: progress });
    lastProgress = progress;
  }
}
/**
 * updateProgress - Emits a message containing the progress of the upload
 *
 * @param  {number} progress Percentage upload has completed
 */
Emits a message containing the progress of the upload
@param  {number} progress Percentage upload has completed
Emits a message containing the progress of the upload @param { number } progress Percentage upload has completed
function updateProgress(progress) {
  if (progress != lastProgress) {
    socketInstance.emit("share.progress", { progress: progress });
    lastProgress = progress;
  }
}
function updateProgress ( progress ) { if ( progress != lastProgress ) { socketInstance . emit ( "share.progress" , { progress : progress } ) ; lastProgress = progress ; } }
updateProgress - Emits a message containing the progress of the upload
 @param  {number} progress Percentage upload has completed
updateProgress - Emits a message containing the progress of the upload @param { number } progress Percentage upload has completed