Test application of the WebSocket package from miktim
Go to file
miktim 7193c4a79c 4.1.4.1 2024-03-20 13:30:48 +03:00
.idea 4.1.4.1 2024-03-20 13:30:48 +03:00
WebSocketTest 4.1.4.1 2024-03-20 13:30:48 +03:00
certificates 4.1.3 2024-03-15 08:18:47 +03:00
gradle/wrapper 3.4.5 2023-11-11 08:43:04 +03:00
.gitignore
LICENSE 3.4.5 2023-11-11 10:52:01 +03:00
README 4.1.4.1 2024-03-20 13:30:48 +03:00
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README

# miktim's WebSocket package test app, MIT (c) 2023-2024 miktim@mail.ru

WebSocket package see in WebSocket repo: https://github.com/miktim/WebSocket
The websocket jar file was built using JDK 1.8.0 with the target JDK 6

The application (./WebSocketTest/release/) was created and tested
in Android Studio Arctic Fox | 2020.3.1 patch 4
Gradle: compileSdk 33; minSdk 14; targetSdk 33

3.4.5 fixed bug: occasional problem with clear text connections to localhost:
  test hang after connection is established.

4.0.1 API 22,23 fixed: java.lang.UnsupportedOperationException:
  at javax.net.ssl.SSLSocket.shutdownOutput

* WARNING! WSS client test:
   - TLS connection require API 25 and newer
     (features of the updated remote server certificate).

4.1.3 WSS client test updated, WS server test added
** WARNING! WS Server test:
   - does not work on emulators/devices where the browser
     does not support WebSocket;
   - step 3 may throw an OutOfMemoryError;
   - browser may hang on step 4 ping (app in wait state).
     TODO: replace Thread with Service

The test was passed on:

Emulator Nexus S:
Android 13 API 33 Ok
Android 11 API 30 Ok
Android 10 API 29 Ok
Android 7.1.1 API 25 Ok
Android 5.1 API 22* **

Emulator Pixel 5:
Android 5  API 21* **
Android 4.1 API 16* **
    WSS client-server test failed: java.io.IOException: Wrong version of key store.
    BKS-V1 type key file solved this problem (KeyStore Explorer 5.4.x)

Real devices:
Android 7  API 24*
Android 6  API 23*
Android 4.0.3 API 15*
Harmony OS 3.0 **

Helpful links:

https://developer.android.com/privacy-and-security/security-config
https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb26656c4f8
https://keystore-explorer.org/