poetic:server-task

v0.0.1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Install

meteor add poetic:task

Global Variable

ServerTask

Usage

  1. You need to setup a token in the server side
// server
ServerTask.setToken(token)
  1. You can then define a task on the ServerTask object
// server
ServerTask.task1 = function() { ... }
  1. Then you can use the tasks in the front end javascript console
ServerTask.setToken(token)
ServerTask.run(name, [arg1, arg2...])