@smarterservices/vps-general-socket-toolkit

1.0.0 • Public • Published

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 listener
  • userId: the users id
  • sessionId: the session id for that video
  • videoType: the video type. I.e webcam,screen
  • videoTimestamp: the timestamp from the video
  • videoId: the video id
  • speed: the speed of the upload
  • size: the size of the upload
  • time: the time the upload took

Example

kit.s3Speed(topic,userId,sessionId,videoType,videoTimestamp,videoId,speed,size,time);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @smarterservices/vps-general-socket-toolkit

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Last publish

      Collaborators

      • cameron_wise
      • astarr19
      • matthew.underhill
      • smarterservicesdev
      • jasonfill