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