README
toolkit
A toolkit containing functions that help with standard smartersockets tasks
Getting Started
npm install @smarterservices/vps-student-socket-toolkit
Constructor:
var toolkit = require('@smarterservices/vps-student-socket-toolkit');
var kit = new toolkit({socket:socket}};
Note socket in config is where you pass your entire smarterservices socket
Methods
requestHelp
description: Request help from proctor
Arguments
topic
: topic of the listenermessage
: message the proctor will receive
Example
kit.requestHelp(topic,message);
###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);