Skip to content

Commit

Permalink
Remove RealtimeClient endpoint parameter name underscore prefix from …
Browse files Browse the repository at this point in the history
…initializers (#22)

* remove endpoint parameter name underscore prefix

* Revert "remove endpoint parameter name underscore prefix"

This reverts commit 478c72e.

* add deprecated initializer to RealtimeClient for compatibility

* Revert "add deprecated initializer to RealtimeClient for compatibility"

This reverts commit 6061152.

* add deprecated initializer to RealtimeClient for compatibility with supabase-swift 0.3.0
  • Loading branch information
foodisbeast authored Aug 1, 2023
1 parent 6bbe3d0 commit bfb5313
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sources/Realtime/RealtimeClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,21 @@ public class RealtimeClient: TransportDelegate {
vsn: vsn
)
}

@available(*, deprecated, renamed: "init(_:params:vsn:)")
public convenience init(
endPoint: String,
params: Payload? = nil,
vsn: String = Defaults.vsn
) {
self.init(
endPoint: endPoint,
transport: { url in URLSessionTransport(url: url) },
paramsClosure: { params },
vsn: vsn
)
}


public init(
endPoint: String,
Expand Down

0 comments on commit bfb5313

Please sign in to comment.