-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
@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. |
There was a problem hiding this 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.
src/components/BiDiLog.js
Outdated
value={bidiCommand} | ||
/> | ||
{log.toReversed().map((entry) => ( | ||
<BiDiLogEntry entry={entry} key={entry.message} /> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Closes #11