@smarterservices/vps-student-socket-toolkit

1.0.2 • Public • Published

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 listener
  • message: message the proctor will receive

Example

kit.requestHelp(topic,message);


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

Dependents (0)

Package Sidebar

Install

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

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

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