public function run() {

        if (PHP_SAPI !== 'cli') {
            throw new AppServiceException('Warning: Script should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI');
        }

        try {

            $this->socketService->run();

        }
        catch(SocketServiceException $e) {
            throw new AppServiceException($e->getMessage());
        }
    }
public function run() {

        if (PHP_SAPI !== 'cli') {
            throw new AppServiceException('Warning: Script should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI');
        }

        try {

            $this->socketService->run();

        }
        catch(SocketServiceException $e) {
            throw new AppServiceException($e->getMessage());
        }
    }
public function run ( ) { if ( PHP_SAPI !== 'cli' ) { throw new AppServiceException ( 'Warning: Script should be invoked via the CLI version of PHP, not the ' . PHP_SAPI . ' SAPI' ) ; } try { $ this -> socketService -> run ( ) ; } catch ( SocketServiceException $ e ) { throw new AppServiceException ( $ e -> getMessage ( ) ) ; } }
Run socket server
@throws \Sonar\Exceptions\AppServiceException
Run socket server