NSWSESMembers / availability-poc

WIP proof of concept availability app
MIT License
10 stars 4 forks source link

Client websocket connector and event Subscription listening #518

Closed OSPFNeighbour closed 6 years ago

OSPFNeighbour commented 6 years ago

Setup for client to connect to WS. Set to lazy so that it will only connect when needed (otherwise it will connect on launch, which is before we have auth)

Minor schema change to server so we get an ID back.

Ive tested most of it locally on my emulators and its working, need to get some tests done with multiple users running at once to see what happens under load.

codecov[bot] commented 6 years ago

Codecov Report

Merging #518 into master will decrease coverage by 0.37%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #518      +/-   ##
=========================================
- Coverage   28.18%   27.8%   -0.38%     
=========================================
  Files         172     180       +8     
  Lines        2803    2924     +121     
  Branches      412     425      +13     
=========================================
+ Hits          790     813      +23     
- Misses       1702    1789      +87     
- Partials      311     322      +11
Flag Coverage Δ
#integration 0% <ø> (ø) :arrow_up:
#unittests 28.34% <0%> (-0.38%) :arrow_down:
Impacted Files Coverage Δ
server/src/schema.js 75% <ø> (ø) :arrow_up:
client/src/graphql/event-response.fragment.js 100% <ø> (ø) :arrow_up:
client/src/graphql/event.subscription.js 0% <0%> (ø)
client/src/screens/events/Detail.js 0% <0%> (ø) :arrow_up:
client/src/config.js 0% <0%> (ø) :arrow_up:
client/src/state/auth.actions.js 0% <0%> (ø) :arrow_up:
client/src/graphql/event-response.subscription.js 0% <0%> (ø)
client/src/app.js 0% <0%> (ø) :arrow_up:
server/src/logic.js 1.94% <0%> (-0.29%) :arrow_down:
server/src/resolvers.js 1.58% <0%> (-0.08%) :arrow_down:
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update dcaf831...0cff54a. Read the comment docs.