Open jschmid opened 3 years ago
If you try to enable StrictMode, specifically [untagged sockets](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder#detectUntaggedSockets()), the app will trigger warnings (or crash if it is configured as such) because of the socket opened by Autobahn.
This is a bit annoying because this prevents us to use the "catch all" detectAll() method from StrictMode.
detectAll()
From what I understand, WebSocketConnector should call TrafficStats.setThreadStatsTag(int) to use a TAG for the socket created by Autobahn.
WebSocketConnector
TrafficStats.setThreadStatsTag(int)
If you try to enable StrictMode, specifically [untagged sockets](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder#detectUntaggedSockets()), the app will trigger warnings (or crash if it is configured as such) because of the socket opened by Autobahn.
This is a bit annoying because this prevents us to use the "catch all"
detectAll()
method from StrictMode.From what I understand,
WebSocketConnector
should callTrafficStats.setThreadStatsTag(int)
to use a TAG for the socket created by Autobahn.