Skip to content

Commit

Permalink
Merge pull request #21 from appwrite/dev
Browse files Browse the repository at this point in the history
feat: update for 1.0.0-RC1
  • Loading branch information
christyjacob4 authored Sep 6, 2022
2 parents e17e637 + 4f6eba7 commit 56f06e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:

```swift
dependencies: [
.package(url: "[email protected]:appwrite/sdk-for-apple.git", from: "1.0.0-RC1"),
.package(url: "[email protected]:appwrite/sdk-for-apple.git", from: "1.0.0-RC2"),
],
```

Expand Down
2 changes: 1 addition & 1 deletion Sources/Appwrite/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ open class Client {
"x-sdk-name": "Apple",
"x-sdk-platform": "client",
"x-sdk-language": "swiftclient",
"x-sdk-version": "1.0.0-RC1",
"x-sdk-version": "1.0.0-RC2",
"X-Appwrite-Response-Format": "1.0.0-RC1"
]

Expand Down
4 changes: 2 additions & 2 deletions Sources/Appwrite/Models/RealtimeModels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public class RealtimeCallback {
public class RealtimeResponseEvent {
public let events: [String]?
public let channels: [String]?
public let timestamp: Int64?
public let timestamp: String?
public var payload: [String: Any]?

init(
events: [String],
channels: [String],
timestamp: Int64,
timestamp: String,
payload: [String: Any]
) {
self.events = events
Expand Down
2 changes: 1 addition & 1 deletion Sources/Appwrite/Services/Realtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ extension Realtime: WebSocketClientDelegate {
let response = RealtimeResponseEvent(
events: events,
channels: channels,
timestamp: data["timestamp"] as! Int64,
timestamp: data["timestamp"] as! String,
payload: payload
)
subscription.value.callback(response)
Expand Down

0 comments on commit 56f06e6

Please sign in to comment.