master
Version:
Master is a node web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern
20 lines (15 loc) • 439 B
JavaScript
/*
** Add on browser js file **
var homeSocket = io.connect('http://127.0.0.1:8080', {query : "socket=home"});
homeSocket.on('index', function(obj){});
homedSocket.emit('index', *SEND OBJECT*);
*/
class homeSocket{
constructor() {
// can have multiple beforeAction calls
// this.beforeAction(["create","index" ,"show", "edit", "new"], function(){ });
}
async index(obj){
}
}
module.exports = homeSocket;