Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print websocket address to stdout. #3

Open
akvadrako opened this issue Oct 27, 2021 · 1 comment
Open

Print websocket address to stdout. #3

akvadrako opened this issue Oct 27, 2021 · 1 comment
Labels
enhancement New feature or request pr welcome

Comments

@akvadrako
Copy link

I was looking for something that would start a playwright server from the CLI that I could connect to via python. playwright-start looked good except it doesn't print out the websocket address.

It would be a nice addition if this script allowed to specify the wspath and port and also printed them to stdout.

@privatenumber
Copy link
Owner

Sounds good to me. playwright-start also writes it to this file:

const WS_ENDPOINT_FILE = path.resolve(process.env.HOME, '.ws-endpoint');

Let's log the Websocket address and also the file path so that it can be programmatically read.

PR welcome!

@privatenumber privatenumber added enhancement New feature or request pr welcome labels Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

No branches or pull requests

2 participants