You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Change log
2
2
3
+
## v0.48.0
4
+
-**Customizable subscription message identifiers:** The `WebSocketTransport` initializer can be configured with a subclass of `OperationMessageIdCreator` to provide a unique identifier per request. The default implementation is `ApolloSequencedOperationMessageIdCreator` and retains the current behavior of sequential message numbering. [#1919](https://github.com/apollographql/apollo-ios/pull/1919) - _Thank you to [Clark McNally](https://github.com/cmcnally-beachbody) for the contribution!_
5
+
-**AWS AppSync Compatibility:** Apollo-ios will now correctly handle the `start_ack` message that AWS AppSync servers respond with when a subscription is requested. [#1919](https://github.com/apollographql/apollo-ios/pull/1919) - _Thank you to [Clark McNally](https://github.com/cmcnally-beachbody) for the contribution!_
6
+
-**Updated to version 2.33.6 of the Apollo CLI:** Applies some new vulnerability patches to the CLI, but should not change any output. [#1929](https://github.com/apollographql/apollo-ios/pull/1929)
7
+
-**Improved documentation:** Clarification of cache normalization concepts. [#1710](https://github.com/apollographql/apollo-ios/pull/1710) - _Thank you to [Daniel Morgan](https://github.com/morgz) for the contribution!_
8
+
3
9
## v0.47.1
4
10
-**Fixed - Websocket default implementation not included in `ApolloWebSocket` via Cocoapods:**_Thank you to [ketenshi](https://github.com/ketenshi) for the contribution!_
Copy file name to clipboardExpand all lines: Sources/ApolloWebSocket/WebSocketTransport.swift
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,10 @@ public class WebSocketTransport {
87
87
/// - reconnect: Whether to auto reconnect when websocket looses connection. Defaults to true.
88
88
/// - reconnectionInterval: How long to wait before attempting to reconnect. Defaults to half a second.
89
89
/// - allowSendingDuplicates: Allow sending duplicate messages. Important when reconnected. Defaults to true.
90
-
/// - connectOnInit: Whether the websocket connects immediately on creation. If false, remember to call `resumeWebSocketConnection()` to connect. Defaults to true.
90
+
/// - connectOnInit: Whether the websocket connects immediately on creation. If false, remember to call `resumeWebSocketConnection()` to connect. Defaults to true.
91
91
/// - connectingPayload: [optional] The payload to send on connection. Defaults to an empty `GraphQLMap`.
92
92
/// - requestBodyCreator: The `RequestBodyCreator` to use when serializing requests. Defaults to an `ApolloRequestBodyCreator`.
93
+
/// - operationMessageIdCreator: The `OperationMessageIdCreator` used to generate a unique message identifier per request. Defaults to `ApolloSequencedOperationMessageIdCreator`.
- reconnect: Whether to auto reconnect when websocket looses connection. Defaults to true.
60
61
- reconnectionInterval: How long to wait before attempting to reconnect. Defaults to half a second.
61
62
- allowSendingDuplicates: Allow sending duplicate messages. Important when reconnected. Defaults to true.
62
-
- connectOnInit: Whether the websocket connects immediately on creation. If false, remember to call `resumeWebSocketConnection()`to connect. Defaults to true.
63
+
- connectOnInit: Whether the websocket connects immediately on creation. If false, remember to call `resumeWebSocketConnection()`to connect. Defaults to true.
63
64
- connectingPayload: [optional] The payload to send on connection. Defaults to an empty `GraphQLMap`.
64
65
- requestBodyCreator: The `RequestBodyCreator` to use when serializing requests. Defaults to an `ApolloRequestBodyCreator`.
66
+
- operationMessageIdCreator: The `OperationMessageIdCreator` used to generate a unique message identifier per request. Defaults to `ApolloSequencedOperationMessageIdCreator`.
65
67
66
68
#### Parameters
67
69
@@ -75,6 +77,10 @@ Designated initializer
75
77
| reconnect | Whether to auto reconnect when websocket looses connection. Defaults to true. |
76
78
| reconnectionInterval | How long to wait before attempting to reconnect. Defaults to half a second. |
77
79
| allowSendingDuplicates | Allow sending duplicate messages. Important when reconnected. Defaults to true. |
80
+
| connectOnInit | Whether the websocket connects immediately on creation. If false, remember to call `resumeWebSocketConnection()` to connect. Defaults to true. |
81
+
| connectingPayload | [optional] The payload to send on connection. Defaults to an empty `GraphQLMap`. |
82
+
| requestBodyCreator | The `RequestBodyCreator` to use when serializing requests. Defaults to an `ApolloRequestBodyCreator`. |
83
+
| operationMessageIdCreator | The `OperationMessageIdCreator` used to generate a unique message identifier per request. Defaults to `ApolloSequencedOperationMessageIdCreator`. |
0 commit comments