Skip to content

Commit

Permalink
Use the Voryx event loop instead of the interop
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwdan committed Mar 14, 2017
1 parent d2ad761 commit ab4e1cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Rx\Thruway;

use Rx\Observer\CallbackObserver;
use Rx\Scheduler;
use Rx\Thruway\Subject\SessionReplaySubject;
use Rx\Thruway\Subject\WebSocketSubject;
Expand Down
2 changes: 1 addition & 1 deletion src/Subject/WebSocketSubject.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(string $url, array $protocols = [], Subject $openObs
$this->openObserver = $openObserver;
$this->closeObserver = $closeObserver;
$this->serializer = new JsonSerializer();
$this->loop = new AsyncInteropLoop();
$this->loop = \EventLoop\getLoop();
$this->output = new Subject();
}

Expand Down
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@
* The default scheduler is the EventLoopScheduler, which is asynchronous.
* For testing we need to block at `subscribe`, so we need to switch the default to the ImmediateScheduler.
*/
\Rx\Scheduler::setDefault(new \Rx\Scheduler\ImmediateScheduler());
\Rx\Scheduler::setDefaultFactory(function () {
return new \Rx\Scheduler\ImmediateScheduler();
});

0 comments on commit ab4e1cf

Please sign in to comment.