Permalink
Browse files

Receiver

  • Loading branch information...
1 parent 736f366 commit 20debfe46b89f8122ab983054f6c95865be1241a @marcus-campos committed Jan 10, 2017
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/Receiver/Receiver.php
@@ -11,7 +11,6 @@
use ElephantIO\Client;
use ElephantIO\Engine\SocketIO\Version1X;
use Config;
-use ElephantIO\Exception\ServerConnectionFailureException;
class Receiver
{
@@ -25,11 +24,6 @@ public static function receive()
$client = new Client(new Version1X($url));
$client->initialize();
- while (true) {
- $r = $client->read();
- dd($r);
- }
-
- $client->close();
+ return $client;
}
}

0 comments on commit 20debfe

Please sign in to comment.