Skip to content

Commit

Permalink
refactor: rename SubscriptionLink to RSocketSubscriptionLink
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Viglucci <[email protected]>
  • Loading branch information
viglucci committed Nov 1, 2022
1 parent dc94348 commit bb1efc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/rsocket-graphql-apollo-link/src/RSocketLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { split } from "@apollo/client/core";
import { getMainDefinition } from "@apollo/client/utilities";
import { RSocketQueryLink } from "./RSocketQueryLink";
import { SubscriptionLink } from "./SubscriptionLink";
import { RSocketSubscriptionLink } from "./RSocketSubscriptionLink";
import { RSocket } from "rsocket-core";

export type makeRSocketLinkConfig = {
Expand All @@ -34,7 +34,7 @@ export const makeRSocketLink = ({ rsocket, route }: makeRSocketLinkConfig) => {
definition.operation === "subscription"
);
},
new SubscriptionLink(rsocket, { route }),
new RSocketSubscriptionLink(rsocket, { route }),
new RSocketQueryLink(rsocket, { route })
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
WellKnownMimeType,
} from "rsocket-composite-metadata";

export type SubscribeOperation = {
type SubscribeOperation = {
query: String;
variables: Record<string, any>;
operationName: string;
Expand Down Expand Up @@ -102,7 +102,7 @@ class SubscriptionClient {
}
}

export class SubscriptionLink extends ApolloLink {
export class RSocketSubscriptionLink extends ApolloLink {
private client: SubscriptionClient;
constructor(
client: RSocket,
Expand Down
2 changes: 1 addition & 1 deletion packages/rsocket-graphql-apollo-link/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

export { makeRSocketLink, makeRSocketLinkConfig } from "./RSocketLink";
export { RSocketQueryLink } from "./RSocketQueryLink";
export { SubscriptionLink } from "./SubscriptionLink";
export { RSocketSubscriptionLink } from "./RSocketSubscriptionLink";

0 comments on commit bb1efc5

Please sign in to comment.