Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Dec 9, 2023
1 parent ab23a98 commit 4b3d462
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Playwright/Core/CDPSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ public CDPSession(IChannelOwner parent, string guid) : base(parent, guid)

internal override void OnMessage(string method, JsonElement? serverParams)
{
OnCDPEvent(serverParams!.Value.GetProperty("method").ToString(), serverParams.Value.GetProperty("params"));
switch (method)
{
case "message":
OnCDPEvent(serverParams!.Value.GetProperty("method").ToString(), serverParams.Value.GetProperty("params"));
break;
}
}

[MethodImpl(MethodImplOptions.NoInlining)]
Expand Down

0 comments on commit 4b3d462

Please sign in to comment.