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

Puppeteer 用のポート番号を変更できるようにする #13

Closed
amotarao opened this issue Apr 7, 2021 · 4 comments · Fixed by #124
Closed

Puppeteer 用のポート番号を変更できるようにする #13

amotarao opened this issue Apr 7, 2021 · 4 comments · Fixed by #124
Labels
enhancement New feature or request

Comments

@amotarao
Copy link
Member

amotarao commented Apr 7, 2021

No description provided.

@zeek0x
Copy link
Member

zeek0x commented Apr 24, 2021

ポート番号を固定にしてる理由はなんでしたっけ?

https://github.com/TrevorSundberg/puppeteer-in-electroninitialize の実装を見ると pie.initialize で第2引数で何も渡さなければ getPort でエフェメラルポートから空いてるポートを取得してくれそうです。

await pie.initialize(app, port);

@amotarao
Copy link
Member Author

固定しないと、起動時に「ネットワーク受信接続を許可しますか?」と出てしまいます
空いてるポートを片っ端から調べるようです。

https://www.npmjs.com/package/get-port が悪さしてるようです

@amotarao
Copy link
Member Author

amotarao commented May 1, 2021

TrevorSundberg/puppeteer-in-electron#29
これが npm でリリースされ次第、アップグレードで解決できる

@zeek0x
Copy link
Member

zeek0x commented Jun 11, 2021

#123 リリースされましたが、型エラーでビルドがコケている。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants