/**
  * Connect to Stomp server, if not connected.
  *
  * @throws \FuseSource\Stomp\Exception\StompException
  */
 protected function connect()
 {
     if (!$this->stomp->isConnected()) {
         $this->stomp->connect(Arr::get($this->credentials, 'username', ''), Arr::get($this->credentials, 'password', ''));
     }
 }
Example #2
-1
 /**
  * @inheritdoc
  */
 protected function setState(IStateful $state, array $options = [])
 {
     $init = null;
     if ($state instanceof StateTemplate) {
         $init = $state->init($options);
     }
     $this->base->setState($state);
     return $init;
 }