Files
2018-08-02 17:53:23 +01:00

12 lines
172 B
JavaScript

function controller(msg) {
switch (msg) {
case 'start':
start();
break;
case 'start':
stop();
break;
default:
throw new Error("Message not understood.");
}
}