Accept an incoming command from the AngularJS client.