You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,34 @@ The Android-specific library AAR is built with:
35
35
36
36
(The `ANDROID_HOME` environment variable must be set appropriately.)
37
37
38
+
## Adding a New Network Engine Implementation
39
+
40
+
Currently, `ably-java` supports two different engines for network operations (HTTP calls and WebSocket connections):
41
+
42
+
-**Default Engine**: Utilizes the built-in `HttpUrlConnection` for HTTP calls and the TooTallNate/Java-WebSocket library for WebSocket connections.
43
+
-**OkHttp Engine**: Utilizes the OkHttp library for both HTTP and WebSocket connections.
44
+
45
+
These engines are designed to be swappable. By default, the library comes with the default engine, but you can easily replace it with the OkHttp engine:
0 commit comments