forked from apollographql/apollo-server
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ws-core): refactor underlying protocol
See apollographql#272 for more info.
- Loading branch information
Showing
6 changed files
with
152 additions
and
65 deletions.
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export * from 'graphql-server-core'; | ||
export * from './messageTypes'; | ||
export { Observable, IObservable, Observer, Subscription } from './Observable'; | ||
export { runQueryReactive, ReactiveQueryOptions } from './runQueryReactive'; | ||
export { RGQLExecutor, RGQLExecuteFunction, ReactiveGraphQLOptions } from './reactiveOptions'; | ||
export { RequestsManager, ReactiveRequest, ReactiveMessage } from './RequestsManager'; | ||
export { RequestsManager, ReactiveRequest, RGQLPacket } from './RequestsManager'; |
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,21 @@ | ||
import { ExecutionResult } from 'graphql'; | ||
export const RGQL_MSG_ERROR = 'error'; | ||
export const RGQL_MSG_COMPLETE = 'complete'; | ||
export const RGQL_MSG_DATA = 'data'; | ||
export const RGQL_MSG_START = 'start'; | ||
export const RGQL_MSG_STOP = 'stop'; | ||
export type RGQLMessageType = ( | ||
'error' | | ||
'complete' | | ||
'data' | | ||
'start' | | ||
'stop' | ||
); | ||
export type RGQLPayloadError = Error; | ||
export type RGQLPayloadData = ExecutionResult; | ||
export interface RGQLPayloadStart { | ||
query?: string; | ||
variables?: any; | ||
operationName?: string; | ||
}; | ||
export type RGQLPayloadType = RGQLPayloadError | RGQLPayloadData | RGQLPayloadStart; |
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