['POST'], 'update-items' => ['POST'], ]; } /** * @throws NotSupportedException */ public function actionIndex() { throw new NotSupportedException(); } /** * @return array|bool */ public function actionScheduleTriggers() { $api = new WebSocketAPIBridge(Yii::$app->user->identity); $result = $api->send([ 'type' => 'schedule-triggers', ]); return [ 'success' => $result, ]; } /** * @return array|bool */ public function actionUpdateItems() { $api = new WebSocketAPIBridge(Yii::$app->user->identity); $result = $api->send([ 'type' => 'update-items', ]); return [ 'success' => $result, ]; } }