Skip to content

Fix Chrome support and add the field to send BiDi commands #32

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

Merged
merged 5 commits into from
Aug 20, 2024
Merged

Conversation

lutien
Copy link
Collaborator

@lutien lutien commented Aug 19, 2024

Closes #11

@lutien lutien requested a review from juliandescottes August 19, 2024 09:57
@whimboo
Copy link

whimboo commented Aug 19, 2024

@juliandescottes would we need similar fixes for your client to get it connected to Chrome again? Or did we already land those? I cannot remember and didn't try out Chrome for a while.

@lutien
Copy link
Collaborator Author

lutien commented Aug 19, 2024

@juliandescottes would we need similar fixes for your client to get it connected to Chrome again? Or did we already land those? I cannot remember and didn't try out Chrome for a while.

I've just checked the Julian's client with Chrome, and it seems to be working fine.

Copy link
Member

@juliandescottes juliandescottes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Some nits + suggestion for a quick follow up.

value={bidiCommand}
/>
{log.toReversed().map((entry) => (
<BiDiLogEntry entry={entry} key={entry.message} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to your change, but in my BiDi logs I had twice the message WebSocket closed and therefore they both had the same key. Because of this each re-render of the component leads to a react error, and since we re-render on every keystroke (due to the state update for inputChange), this makes the console logs hard to use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I've added the index to the message, so it should make it more unique

@lutien lutien merged commit 91cef26 into main Aug 20, 2024
@lutien lutien deleted the fixes branch August 20, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a way to send BiDi commands
3 participants