@@ -31,17 +31,17 @@ |
||
| 31 | 31 | |
| 32 | 32 | $connector($this->wssHost, [$this->subProtocol], ['Host' => $this->host] + $this->auth->getBasicAuth())->then( |
| 33 | 33 | |
| 34 | - function (WebSocket $stream) { |
|
| 34 | + function(WebSocket $stream) { |
|
| 35 | 35 | |
| 36 | - $stream->on('message', function (MessageInterface $msg) { |
|
| 36 | + $stream->on('message', function(MessageInterface $msg) { |
|
| 37 | 37 | $this->message($msg); |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | - $stream->on('close', function ($code = null, $reason = null) { |
|
| 40 | + $stream->on('close', function($code = null, $reason = null) { |
|
| 41 | 41 | $this->close($code, $reason); |
| 42 | 42 | }); |
| 43 | 43 | |
| 44 | - }, function (\Exception $e) use ($loop) { |
|
| 44 | + }, function(\Exception $e) use ($loop) { |
|
| 45 | 45 | echo "Could not connect: {$e->getMessage()}\n"; |
| 46 | 46 | $loop->stop(); |
| 47 | 47 | } |