Skip to content

Commit

Permalink
fix(socket-relay): Change observer onValue to onResult
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtitimoli committed Nov 8, 2017
1 parent c61bd7e commit 05f7f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/socket-relay/src/createFetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const createFetcher = (
observe(absintheSocket, send(absintheSocket, {operation, variables}), {
onError,
onAbort: reject,
onValue: resolve
onResult: resolve
})
);

Expand Down
4 changes: 2 additions & 2 deletions packages/socket-relay/src/createSubscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const createSubscriber = (
observe(absintheSocket, notifier, {
onAbort: onAbort(deferred, OnUnrecoverableError),
onError: onRecoverableError,
onStart: onStart(deferred),
onValue: (onNext: any)
onResult: (onNext: any),
onStart: onStart(deferred)
});

return disposable;
Expand Down

0 comments on commit 05f7f2b

Please sign in to comment.