Skip to content

Instantly share code, notes, and snippets.



Created Apr 3, 2018
What would you like to do?
var Arrow = require('arrow');
var io = require('');
var socket = io.connect("");
exports.sendPlay = function(id, callback) {
console.log('utils: sendPlay() called');
socket.emit('doPlay',{id : id});
callback({"msg":"Your video is playing."});
exports.sendStop = function(id, callback) {
console.log('utils: sendStop() called');
socket.emit('doStop',{id : id});
callback({"msg":"Your video is stopping."});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment