Skip to content

Commit 2ca9c25

Browse files
committed
Fix realtime URL parsing for more than one occurence of http
1 parent 8a551f2 commit 2ca9c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/android/library/src/main/java/io/appwrite/Client.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Client @JvmOverloads constructor(
161161
this.endPoint = endPoint
162162

163163
if (this.endPointRealtime == null && endPoint.startsWith("http")) {
164-
this.endPointRealtime = endPoint.replace("http", "ws")
164+
this.endPointRealtime = endPoint.replaceFirst("http", "ws")
165165
}
166166

167167
return this

0 commit comments

Comments
 (0)