Skip to content

Commit

Permalink
docs: unnecessary var assignment [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Apr 25, 2022
1 parent d8dcf21 commit 29204b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,8 @@ const client = createClient({
import { createClient } from 'graphql-ws';
import { waitForHealthy } from './my-servers';

const url = 'ws://i.want.retry:4000/control/graphql';

const client = createClient({
url,
url: 'ws://i.want.retry:4000/control/graphql',
retryWait: async function waitForServerHealthyBeforeRetry() {
// if you have a server healthcheck, you can wait for it to become
// healthy before retrying after an abrupt disconnect (most commonly a restart)
Expand Down

0 comments on commit 29204b2

Please sign in to comment.