Skip to content

Commit

Permalink
feat(client): Re-implement following the new transport protocol (#6)
Browse files Browse the repository at this point in the history
* feat: drop deps and begin rework with connecting a socket

# Conflicts:
#	package.json
#	src/types.d.ts
#	yarn.lock

* refactor: adapt file title

* refactor: naming consistency and type reuse

* refactor: use generic default

* refactor: multiple sinks can subscribe

* refactor: use absolute imports

* fix(message): payload for conn init can be undefined

# Conflicts:
#	src/message.ts

* refactor: the sink can error out with graphql errors too

* feat(client): implement

# Conflicts:
#	src/tests/client.ts

* fix: run tests serially

* test: basic subscription

* fix: check if already connected when connecting

* test: write a few more
  • Loading branch information
enisdenjo authored Aug 17, 2020
1 parent a412d25 commit 5191a35
Show file tree
Hide file tree
Showing 7 changed files with 499 additions and 401 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
"scripts": {
"lint": "eslint 'src'",
"type-check": "tsc --noEmit",
"test": "jest",
"test": "jest -i",
"build": "tsc -b",
"release": "semantic-release"
},
"peerDependencies": {
"graphql": ">=15.0.0"
},
"dependencies": {
"websocket-as-promised": "^1.0.1",
"ws": "^7.3.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 5191a35

Please sign in to comment.