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: docs/source/advanced/authentication.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ If your user logged out, you might want to consider creating a new `ApolloClient
89
89
90
90
</Note>
91
91
92
-
Sometimes the websocket will emit an error that you can use in `webSocketReopenWhen` to create a new WebSocket. Other times that information will come from elsewhere in your app and you will have to force disconnect the WebSocket.
92
+
Sometimes the websocket will emit an error that you can use in `webSocketReopenWhen` to create a new WebSocket. Other times that information will come from elsewhere in your app, and you have to force disconnect the WebSocket.
Copy file name to clipboardExpand all lines: docs/source/advanced/client-awareness.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Client Awareness
3
3
---
4
4
5
-
GraphOS Studio users can opt-in [Client Awareness](https://www.apollographql.com/docs/graphos/metrics/client-awareness/). Client Awareness allows you to view operation metrics split per client, helping you understand how each one interacts with your graph.
5
+
GraphOS Studio users can optin [Client Awareness](https://www.apollographql.com/docs/graphos/metrics/client-awareness/). Client Awareness allows you to view operation metrics split per client, helping you understand how each one interacts with your graph.
6
6
7
7
Client Awareness uses `apollographql-client-name` and `apollographql-client-version` custom HTTP headers to report client usage.
Copy file name to clipboardExpand all lines: docs/source/advanced/experimental-websockets.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Starting with 4.0.0, Apollo Kotlin provides a new `com.apollographql.apollo.netw
20
20
The `com.apollographql.apollo.network.websocket` implementation provides the following:
21
21
22
22
1. Defaults to the [graphql-ws](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md) protocol, which has become the de facto standard. Using the other protocols is still possible but having a main, specified, protocol ensures we can write a good and solid test suite.
23
-
2. Does not inherit from the old memory model design, making the code considerably simpler. In particular, `WebSocketEngine` is now event based and no attempt at flow control is done. If you buffers grow too much, your subscription fails.
23
+
2. Does not inherit from the old memory model design, making the code considerably simpler. In particular, `WebSocketEngine` is now event based and no attempt at flow control is done. If your buffers grow too much, your subscription fails.
24
24
3. Plays nicely with the ApolloClient `retryOnError` API.
25
25
4. Handles different Subscription transports more consistently.
Copy file name to clipboardExpand all lines: docs/source/advanced/interceptors-http.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ title: Interceptors
6
6
7
7
### Apollo HTTP interceptors
8
8
9
-
Apollo Kotlin supports multiplatform `HttpInterceptor` very similar to `OkHttp``Interceptors`. Use them to add authentication headers, log the network calls or anything else.
9
+
Apollo Kotlin supports multi-platform `HttpInterceptor` very similar to `OkHttp``Interceptors`. Use them to add authentication headers, log the network calls or anything else.
10
10
11
11
The interface is a single method. For an example, implementing an authentication interceptors can be done with:
12
12
@@ -31,7 +31,7 @@ Apollo Kotlin comes bundled with [`ClientAwarenessInterceptor`](./client-awarene
31
31
32
32
### OkHttp interceptors
33
33
34
-
If your project is an Android or JVM only project and you already have an [`OkHttp``Interceptor`](https://square.github.io/okhttp/features/interceptors/), you can also reuse it:
34
+
If your project is an Android or JVM only project, and you already have an [`OkHttp``Interceptor`](https://square.github.io/okhttp/features/interceptors/), you can also reuse it:
Copy file name to clipboardExpand all lines: docs/source/advanced/no-runtime.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Using the models without apollo-runtime
3
3
---
4
4
5
-
`apollo-runtime` and `ApolloClient` provide support for doing the network requests and interacting with the cache but you can use the generated models and parsers without the runtime and use your network layer of choice for the HTTP calls.
5
+
`apollo-runtime` and `ApolloClient` provide support for doing the network requests and interacting with the cache, but you can use the generated models and parsers without the runtime and use your network layer of choice for the HTTP calls.
6
6
7
7
For this, remove the `com.apollographql.apollo:apollo-runtime` dependency and replace it with:
8
8
@@ -46,6 +46,7 @@ To parse a network response into the type safe models, use `parseJsonResponse`:
46
46
```kotlin
47
47
/**
48
48
* jsonResponse should contain a json with data and possibly errors:
0 commit comments