var Arrow = require('arrow'); | |
var io = require('socket.io-client'); | |
var socket = io.connect("http://mydomain.ngrok.io.ngrok.io"); | |
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