Skip to content

Commit

Permalink
Update Tls.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinceveve authored Jul 13, 2016
1 parent 3ae2710 commit 7394a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rxnet/Connector/Tls.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace Rxnet\Connector;

use Rx\Observable;
use Rx\ObserverInterface;
use Rxnet\Event\Event;

/**
Expand Down Expand Up @@ -37,14 +39,12 @@ public function setCertificate($certificate, $password = 'maisouestdonc4X') {
}

/**
* @return resource
* @return Observable\AnonymousObservable
*/
protected function createSocketForAddress()
{
$this->notifyNext(new Event('/connector/connecting', $this));
$this->context = stream_context_create($this->contextParams);
return parent::createSocketForAddress();

}

}

0 comments on commit 7394a5d

Please sign in to comment.