This class is used to
handle starting a comet response
and
dispatching the response to other controllers for handling.
By default, comet controller queries the url of its className. For example:
JabbifyController = Controller.Comet.extend('jabbify',{},{})
connects to /jabbify
Comet controller expects data of the format:
{ClassName1:
{action1: [data1, data2 ...],
action2: [ ....],
...
}
ClassName2: { .... }
}
If possible, Controller.Comet tries to create new instances of data, and dispatch to a matching
controller action. For example:
{Todo: {create: [{name: 'wash dishes'}]}}
Will create a new Todo instance and call TodosController::create with that instance.