1.0.0 • Published 8 years ago

@smarterservices/vps-general-socket-toolkit v1.0.0

Weekly downloads
21
License
ISC
Repository
-
Last release
8 years ago

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);