Skip to content

Commit e3fb8e8

Browse files
committed
Possibly fix concurrency issue
1 parent d1d878a commit e3fb8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseAI/Sources/Types/Internal/Live/LiveSessionService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ actor LiveSessionService {
293293
/// Creates a websocket pointing to the backend.
294294
///
295295
/// Will apply the required app check and auth headers, as the backend expects them.
296-
private func createWebsocket() async throws -> AsyncWebSocket {
296+
private nonisolated func createWebsocket() async throws -> AsyncWebSocket {
297297
let urlString = switch apiConfig.service {
298298
case .vertexAI:
299299
"wss://firebasevertexai.googleapis.com/ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/us-central1"

0 commit comments

Comments
 (0)