@@ -80,6 +80,9 @@ |
||
80 | 80 | $conn->write($response); |
81 | 81 | } |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $file |
|
85 | + */ |
|
83 | 86 | protected function serveFile(SocketConnection $conn, $file) |
84 | 87 | { |
85 | 88 | if(($path = realpath($file)) === null){ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | strtolower($request->headers->get('Upgrade')) != 'websocket' || |
38 | 38 | !$this->checkProtocolVrsion($request) || |
39 | 39 | !$this->checkSecKey($key) |
40 | - ){ |
|
40 | + ){ |
|
41 | 41 | return false; |
42 | 42 | } |
43 | 43 | $acceptKey = $this->generateAcceptKey($key); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | protected function processCommandHello($command) |
75 | 75 | { |
76 | 76 | if($this->connected){ |
77 | - return; |
|
77 | + return; |
|
78 | 78 | } |
79 | 79 | $this->app->getOutput()->writeln(strftime('%T')." - info - Livereload protocol initialized.", OutputInterface::VERBOSITY_VERBOSE); |
80 | 80 | $this->connected = true; |