This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 343
onSubscribe and use middleware to modify runtime SubscriptionOptions #78
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
966480f
onSubscribe and use middleware
srtucker22 a140286
middleware with async
srtucker22 513c4f3
need to fix race condition with unsub
srtucker22 b28b3bc
with unsub hotfix
srtucker22 4a5b473
cleaner error testing
srtucker22 b575639
cleanup
srtucker22 12e6eb4
Merge branch 'master' of https://github.com/apollographql/subscriptio…
srtucker22 2b7a9df
merged
srtucker22 e2b27c8
add context to baseParams
srtucker22 07f7b26
hotfix sendMessage after adding subscription
srtucker22 f4ce20c
maybe fixes race condition in #93
srtucker22 f882b36
merged with middleware and unsub enhancements
srtucker22 3cbcbac
all suboption errors handled by handler
srtucker22 278524c
update changelog
srtucker22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ npm-debug.log | |
browser/ | ||
.idea/ | ||
.vscode/ | ||
npm-debug.log.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { OperationOptions } from './client'; | ||
|
||
export interface MiddlewareInterface { | ||
applyMiddleware(options: OperationOptions, next: Function): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is context sent over the network?
@Urigo @helfer @Stubilo - Thats a serious security issue, you shall not release the package with that