Skip to content

Commit e1a4252

Browse files
haltonNilan Marktanner
authored andcommitted
[basic] Fix web socket error on basic.
PR #239 only fixes the web socket issue on advanced boilerplates, this PR is to fix the basic in the same way. Related #235
1 parent f9a709b commit e1a4252

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

basic/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"apollo-link-ws": "1.0.8",
1717
"graphql": "0.13.2",
1818
"graphql-tag": "2.9.2",
19+
"subscriptions-transport-ws": "^0.9.8",
1920
"vue": "2.5.16",
2021
"vue-apollo": "3.0.0-beta.5",
2122
"vue-router": "3.0.1",

basic/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Vue.config.productionTip = false
1515
const httpLink = new HttpLink({ uri: 'http://localhost:4000/' })
1616

1717
const wsLink = new WebSocketLink({
18-
uri: `wss://localhost:4000/`,
18+
uri: `ws://localhost:4000/`,
1919
options: {
2020
reconnect: true,
2121
}

basic/yarn.lock

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,10 @@ babylon@^6.18.0:
982982
version "6.18.0"
983983
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
984984

985+
backo2@^1.0.2:
986+
version "1.0.2"
987+
resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947"
988+
985989
balanced-match@^0.4.2:
986990
version "0.4.2"
987991
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"
@@ -2359,6 +2363,10 @@ [email protected]:
23592363
version "1.2.0"
23602364
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508"
23612365

2366+
eventemitter3@^2.0.3:
2367+
version "2.0.3"
2368+
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-2.0.3.tgz#b5e1079b59fb5e1ba2771c0a993be060a58c99ba"
2369+
23622370
events@^1.0.0:
23632371
version "1.1.1"
23642372
resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
@@ -3665,6 +3673,10 @@ locate-path@^2.0.0:
36653673
p-locate "^2.0.0"
36663674
path-exists "^3.0.0"
36673675

3676+
lodash.assign@^4.2.0:
3677+
version "4.2.0"
3678+
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"
3679+
36683680
lodash.camelcase@^4.3.0:
36693681
version "4.3.0"
36703682
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
@@ -3681,6 +3693,10 @@ lodash.isfunction@^3.0.8:
36813693
version "3.0.9"
36823694
resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051"
36833695

3696+
lodash.isobject@^3.0.2:
3697+
version "3.0.2"
3698+
resolved "https://registry.yarnpkg.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz#3c8fb8d5b5bf4bf90ae06e14f2a530a4ed935e1d"
3699+
36843700
lodash.isstring@^4.0.1:
36853701
version "4.0.1"
36863702
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
@@ -5674,6 +5690,19 @@ strip-json-comments@~2.0.1:
56745690
version "2.0.1"
56755691
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
56765692

5693+
subscriptions-transport-ws@^0.9.8:
5694+
version "0.9.8"
5695+
resolved "https://registry.yarnpkg.com/subscriptions-transport-ws/-/subscriptions-transport-ws-0.9.8.tgz#3a26ab96e06f78cf4ace8d083f6227fa55970947"
5696+
dependencies:
5697+
backo2 "^1.0.2"
5698+
eventemitter3 "^2.0.3"
5699+
iterall "^1.2.1"
5700+
lodash.assign "^4.2.0"
5701+
lodash.isobject "^3.0.2"
5702+
lodash.isstring "^4.0.1"
5703+
symbol-observable "^1.0.4"
5704+
ws "^3.0.0"
5705+
56775706
supports-color@^2.0.0:
56785707
version "2.0.0"
56795708
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
@@ -5720,7 +5749,7 @@ svgo@^0.7.0:
57205749
sax "~1.2.1"
57215750
whet.extend "~0.9.9"
57225751

5723-
symbol-observable@^1.0.2:
5752+
symbol-observable@^1.0.2, symbol-observable@^1.0.4:
57245753
version "1.2.0"
57255754
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
57265755

@@ -6356,6 +6385,14 @@ write@^0.2.1:
63566385
dependencies:
63576386
mkdirp "^0.5.1"
63586387

6388+
ws@^3.0.0:
6389+
version "3.3.3"
6390+
resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2"
6391+
dependencies:
6392+
async-limiter "~1.0.0"
6393+
safe-buffer "~5.1.0"
6394+
ultron "~1.1.0"
6395+
63596396
ws@^4.0.0:
63606397
version "4.0.0"
63616398
resolved "https://registry.yarnpkg.com/ws/-/ws-4.0.0.tgz#bfe1da4c08eeb9780b986e0e4d10eccd7345999f"

0 commit comments

Comments
 (0)