[dotnet][bidi] Remove json serialization from transport layer#15250
[dotnet][bidi] Remove json serialization from transport layer#15250nvborisenko merged 1 commit intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
RenderMichael
left a comment
There was a problem hiding this comment.
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
ITransportinterface by removing JSON-specific methods.Updated
BrokerandWebSocketTransportto use new transport methods.Changes walkthrough 📝
Broker.cs
Refactored Broker to remove JSON serialization dependencydotnet/src/webdriver/BiDi/Communication/Broker.cs
JsonSerializer.Deserialize.ITransport.cs
Simplified ITransport interface for raw byte handlingdotnet/src/webdriver/BiDi/Communication/Transport/ITransport.cs
ITransportinterface.WebSocketTransport.cs
Updated WebSocketTransport to handle raw byte datadotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs