-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[dotnet][bidi] Remove json serialization from transport layer #15250
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
[dotnet][bidi] Remove json serialization from transport layer #15250
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
I like this simplification!
User description
Motivation and Context
Simplify transport layer to know nothing about json serialization context
.
Types of changes
Checklist
PR Type
Enhancement
Description
Removed JSON serialization from the transport layer.
Introduced raw byte data handling for sending/receiving.
Simplified
ITransport
interface by removing JSON-specific methods.Updated
Broker
andWebSocketTransport
to use new transport methods.Changes walkthrough 📝
Broker.cs
Refactored Broker to remove JSON serialization dependency
dotnet/src/webdriver/BiDi/Communication/Broker.cs
JsonSerializer.Deserialize
.ITransport.cs
Simplified ITransport interface for raw byte handling
dotnet/src/webdriver/BiDi/Communication/Transport/ITransport.cs
ITransport
interface.WebSocketTransport.cs
Updated WebSocketTransport to handle raw byte data
dotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs