+5
.changeset/hot-dryers-drive.md
+5
.changeset/hot-dryers-drive.md
+27
-4
docs/advanced/subscriptions.md
+27
-4
docs/advanced/subscriptions.md
···+const subscriptionClient = new SubscriptionClient('wss://localhost/graphql', { reconnect: true });···+Whe you're using subscriptions directly without `urql`'s framework bindings, you can use the `Client`'s `subscription` method for one-off subscriptions. This method is similar to the ones for mutations and subscriptions [that we've seen before on the "Core Package" page.](../concepts/core-package.md#one-off-queries-and-mutations)+This method will always [returns a Wonka stream](../concepts/stream-patterns.md#the-wonka-library) and doesn't have a `.toPromise()` shortcut method, since promises won't return the multiple values that a subscription may deliver. Let's convert the above example to one without framework code, as we may use subscriptions in a Node.js environment.
+7
-1
docs/api/core.md
+7
-1
docs/api/core.md
···This is functionally the same as `client.executeQuery`, but creates operations for subscriptions···+This is similar to [`client.query`](#clientquery), but does not provide a `toPromise()` helper method on the streams it returns.+[Read more about how to use this API on the "Subscriptions" page.](../advanced/subscriptions.md)
+8
packages/core/src/client.ts
+8
packages/core/src/client.ts
···