update comment

This commit is contained in:
mertalev
2026-02-03 15:44:46 -05:00
parent 1ab8cad358
commit 00f8b95769
4 changed files with 5 additions and 12 deletions

View File

@@ -223,10 +223,7 @@ interface NetworkApi {
fun selectCertificate(promptText: ClientCertPrompt, callback: (Result<ClientCertData>) -> Unit)
fun removeCertificate(callback: (Result<Unit>) -> Unit)
fun getClientPointer(): Long
/**
* Creates a WebSocket task and waits for connection to be established.
* iOS only - Android should use OkHttpWebSocket.connectWithClient directly.
*/
/** iOS only - creates a WebSocket task and waits for connection to be established. */
fun createWebSocketTask(url: String, protocols: List<String>?, callback: (Result<WebSocketTaskResult>) -> Unit)
fun setRequestHeaders(headers: Map<String, String>)

View File

@@ -258,8 +258,7 @@ protocol NetworkApi {
func selectCertificate(promptText: ClientCertPrompt, completion: @escaping (Result<ClientCertData, Error>) -> Void)
func removeCertificate(completion: @escaping (Result<Void, Error>) -> Void)
func getClientPointer() throws -> Int64
/// Creates a WebSocket task and waits for connection to be established.
/// iOS only - Android should use OkHttpWebSocket.connectWithClient directly.
/// iOS only - creates a WebSocket task and waits for connection to be established.
func createWebSocketTask(url: String, protocols: [String]?, completion: @escaping (Result<WebSocketTaskResult, Error>) -> Void)
func setRequestHeaders(headers: [String: String]) throws
}
@@ -332,8 +331,7 @@ class NetworkApiSetup {
} else {
getClientPointerChannel.setMessageHandler(nil)
}
/// Creates a WebSocket task and waits for connection to be established.
/// iOS only - Android should use OkHttpWebSocket.connectWithClient directly.
/// iOS only - creates a WebSocket task and waits for connection to be established.
let createWebSocketTaskChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.immich_mobile.NetworkApi.createWebSocketTask\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec)
if let api = api {
createWebSocketTaskChannel.setMessageHandler { message, reply in

View File

@@ -300,8 +300,7 @@ class NetworkApi {
}
}
/// Creates a WebSocket task and waits for connection to be established.
/// iOS only - Android should use OkHttpWebSocket.connectWithClient directly.
/// iOS only - creates a WebSocket task and waits for connection to be established.
Future<WebSocketTaskResult> createWebSocketTask(String url, List<String>? protocols) async {
final String pigeonVar_channelName =
'dev.flutter.pigeon.immich_mobile.NetworkApi.createWebSocketTask$pigeonVar_messageChannelSuffix';

View File

@@ -48,8 +48,7 @@ abstract class NetworkApi {
int getClientPointer();
/// Creates a WebSocket task and waits for connection to be established.
/// iOS only - Android should use OkHttpWebSocket.connectWithClient directly.
/// iOS only - creates a WebSocket task and waits for connection to be established.
@async
WebSocketTaskResult createWebSocketTask(String url, List<String>? protocols);