From 1333d250dd93bcd16d451184997562e993ab3557 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Tue, 5 Aug 2025 11:26:12 +0200 Subject: [PATCH] Kotlin SDK: Remove websocket docs --- .../kotlin-multiplatform.mdx | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/client-sdk-references/kotlin-multiplatform.mdx b/client-sdk-references/kotlin-multiplatform.mdx index 37b94a92..1eb280ca 100644 --- a/client-sdk-references/kotlin-multiplatform.mdx +++ b/client-sdk-references/kotlin-multiplatform.mdx @@ -345,33 +345,6 @@ These instructions are decoded by our SDKs, and on Kotlin there are two implemen To enable the Rust client, pass `SyncOptions(newClientImplementation = true)` as a second parameter when [connecting](https://powersync-ja.github.io/powersync-kotlin/core/com.powersync/-power-sync-database/connect.html). -### Connection Methods - -This SDK supports two methods for streaming sync commands: - -1. **WebSocket (currently experimental)** - - The implementation leverages RSocket for handling reactive socket streams. - - Back-pressure is effectively managed through client-controlled command requests. - - Sync commands are transmitted efficiently as BSON (binary) documents. - - Enabling websocket support requires the new client implementation. -2. **HTTP Streaming (default)** - - This is the original implementation method. - - This method sends data as text (JSON) instead of BSON. - -By default, the `PowerSyncDatabase.connect()` method uses HTTP streams. -You can optionally specify the `connectionMethod` to override this: - -```Kotlin -// HTTP streaming (default) -powerSync.connect(connector) - -// WebSockets (experimental) -powerSync.connect(connector, SyncOptions( - newClientImplementation = true, - method = ConnectionMethod.WebSocket(), -)) -``` - ## ORM Support ORM support is not yet available, we are still investigating options to integrate the SDK with Room and SQLDelight.