@smarterservices/vps-general-socket-toolkit
v1.0.0
Published
general toolkit shared by both proctor and student toolkits
Downloads
3
Readme
toolkit
A general toolkit shared by both proctor and student toolkits. ##Getting Started
npm install @smarterservices/vps-general-socket-toolkit
###Constructor:
var toolkit = require('@smarterservices/vps-general-socket-toolkit');
var kit = new toolkit({socket:socket}};
Note socket in config is where you pass your entire smarterservices socket
##Methods
###s3Speed
description: Send video upload metadata over socket
Arguments
topic
: topic of the listeneruserId
: the users idsessionId
: the session id for that videovideoType
: the video type. I.e webcam,screenvideoTimestamp
: the timestamp from the videovideoId
: the video idspeed
: the speed of the uploadsize
: the size of the uploadtime
: the time the upload took
Example
kit.s3Speed(topic,userId,sessionId,videoType,videoTimestamp,videoId,speed,size,time);