Skip to content

Commit 087047a

Browse files
authored
Fix socket file variable usage in README (#707)
1 parent 4fcbdd4 commit 087047a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ The next calls to the script will read the uri from that file in order to connec
194194
use \HeadlessChromium\BrowserFactory;
195195
use \HeadlessChromium\Exception\BrowserConnectionFailed;
196196

197+
$socketFile = '/tmp/chrome-php-demo-socket';
198+
197199
// path to the file to store websocket's uri
198-
$socket = \file_get_contents('/tmp/chrome-php-demo-socket');
200+
$socket = \file_get_contents($socketFile);
199201

200202
try {
201203
$browser = BrowserFactory::connectToBrowser($socket);

0 commit comments

Comments
 (0)