-1

Are there any best practices to follow when using PupperteerSharp? I've seen some properties like EnqueueAsyncMessages and EnqueueTransportMessages but can't find any good explanations on when is best to turn them on/off and if they make any performance improvements.

Also I've noticed in the ResourceType Enum there is Image and Img. Is there a difference between the two?

hardkoded
  • 18,915
  • 3
  • 52
  • 64

1 Answers1

1

You shouldn't turn those flags on unless you get stuck :)

  • EnqueueAsyncMessages was created for cases where your code is not async all the way. I honestly dislike that flag.
  • EnqueueTransportMessages is recommended on .NET Framework code because the websocket library behaves differently there.

Regarding ResourceTypes, ResourceType.Image comes from Chrome and ResourceType.Img comes from Firefox.

hardkoded
  • 18,915
  • 3
  • 52
  • 64