File: modules/test.js

Recommend this page to a friend!
  Classes of Thomas Björk  >  Node.js Background Jobs  >  modules/test.js  >  Download  
File: modules/test.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Node.js Background Jobs
Run background jobs using Node.js modules
Author: By
Last change: Fixed a bug. (Forgot to close the client socket)
Date: 2 months ago
Size: 146 bytes
 

Contents

Class file image Download
exports.UExecute = function(parts) {
  return "Test";
};

exports.TExecute = function(parts, client) {
  client.write("Test");
  client.end();
};