Open greenfieldtech-nirs opened 7 years ago
Do you mean if Client.prototype.start is called without an application name, or if Client.prototype.start is called with an application name that does not exist on the Asterisk instance the client is connected to?
No, what happens is the following:
start
method is invoked with an undefined value for the apps
variableI do believe that throwing an exception saying: "Stasis Application must define a name" or something like that is a must.
Agreed. I'll see if I can carve out some free time for this soon.
If for some reason, a developer will try to start a Stasis application that has an undefined name (yes, it's stupid, but may happen), Client will not return any type of error or exception.
The issue should be handled within Client.prototype.start (I think):
This may also provide some easy resolution for issue #35