A compatibility wrapper around the BrightScript debug protocol https://developer.roku.com/en-ca/docs/developer-program/debugging/socket-based-debugger.md
Debug protocol v3.1.0 fixed a bug where the main thread would always be marked as primary even if it wasn't.
This PR addds a check for the protocol version, and if protocol v3.1.0 or greater, we trust the isPrimary property from the thread received from the device.
Debug protocol v3.1.0 fixed a bug where the main thread would always be marked as primary even if it wasn't.
This PR addds a check for the protocol version, and if protocol v3.1.0 or greater, we trust the
isPrimary
property from the thread received from the device.