@@ -36,14 +36,14 @@ |
||
| 36 | 36 | |
| 37 | 37 | $connector($this->wssHost, [$this->subProtocol], ['Host' => $this->host] + $this->auth->getBasicAuth())->then( |
| 38 | 38 | |
| 39 | - function (WebSocket $stream) { |
|
| 40 | - $stream->on('message', function (MessageInterface $message) { |
|
| 39 | + function(WebSocket $stream) { |
|
| 40 | + $stream->on('message', function(MessageInterface $message) { |
|
| 41 | 41 | $this->events->message($message, $this->apiWrapper, $this->gearmanClient); |
| 42 | 42 | }); |
| 43 | - $stream->on('close', function ($code = null, $reason = null) { |
|
| 43 | + $stream->on('close', function($code = null, $reason = null) { |
|
| 44 | 44 | $this->events->close($code, $reason); |
| 45 | 45 | }); |
| 46 | - }, function (\Exception $e) use ($loop) { |
|
| 46 | + }, function(\Exception $e) use ($loop) { |
|
| 47 | 47 | $this->events->error($e); |
| 48 | 48 | $loop->stop(); |
| 49 | 49 | } |