You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@prescience-data sorry for such a late reply, I'm happy to accept a PR for this. I primarily launch chrome via the stdio pipes method. Also most of this API is composition of apis, the design of this library was to decouple as much as possible via interfaces
Happy to do this as a PR given it seems trivial to add, but prefer to ask before sending unsolicited PRs.
chrome-debugging-client/@tracerbench/websocket-message-transport/src/index.ts
Line 26 in 3d20f8e
This should allow passing of the parent
ws
library options to allow setting headers and other environment-specific options that might be required.A practical example I just ran into was a Chromium fork that requires authentication headers to be sent with the websocket request.
The implementation I'd suggest to avoid breaking any existing API is something like:
This allows appending the options as an optional trailing arg which avoids any breaking change or API surface modification.
The text was updated successfully, but these errors were encountered: