prolink007
11/02/2018, 3:21 PMHarshit
11/02/2018, 3:29 PMHarshit
11/02/2018, 3:29 PMprolink007
11/02/2018, 3:31 PMHarshit
11/02/2018, 3:32 PMHarshit
11/02/2018, 3:32 PMprolink007
11/02/2018, 3:33 PMprolink007
11/02/2018, 3:33 PMHarshit
11/02/2018, 3:33 PMHarshit
11/02/2018, 3:35 PMprolink007
11/02/2018, 3:35 PMprolink007
11/02/2018, 3:35 PMHarshit
11/02/2018, 3:36 PMHarshit
11/02/2018, 3:36 PMprolink007
11/02/2018, 3:36 PMprolink007
11/02/2018, 3:37 PMHarshit
11/02/2018, 3:37 PMprolink007
11/02/2018, 3:37 PMHarshit
11/02/2018, 3:37 PMprolink007
11/02/2018, 3:38 PMprolink007
11/02/2018, 3:38 PMHarshit
11/02/2018, 3:38 PMprolink007
11/02/2018, 3:38 PMprolink007
11/02/2018, 3:38 PMHarshit
11/02/2018, 3:38 PMHarshit
11/02/2018, 3:38 PMprolink007
11/02/2018, 3:38 PMprolink007
11/02/2018, 3:38 PMprolink007
11/02/2018, 3:38 PMHarshit
11/02/2018, 3:39 PMprolink007
11/02/2018, 3:39 PMprolink007
11/02/2018, 3:39 PMprolink007
11/02/2018, 3:39 PMprolink007
11/02/2018, 3:49 PMprolink007
11/02/2018, 3:49 PMprolink007
11/02/2018, 3:50 PMTestprolink007
11/02/2018, 3:50 PM<ws://localhost:5000/>,
options: {
reconnect: true
}
});
// Create a middleware link with apollo-link so we can attach headers to requests.
// Automatically injects a JWT onto every http call made with the angular http.
const middlewareLink: ApolloLink = new ApolloLink((operation, forward) => {
operation.setContext({
headers: {
Authorization: “Bearer ” + localStorage.getItem(GqlAuthService.TOKEN_ID)
}
});
return forward(operation);
});
return {
// link: middlewareLink.concat(httpLink),
link: split(
// split based on operation type
({ query }) => {
const { kind, operation } = getMainDefinition(query);
return kind === ‘OperationDefinition’ && operation === ‘subscription’;
},
middlewareLink.concat(wsLink),
middlewareLink.concat(httpLink),
),
cache: new InMemoryCache()
};`Harshit
11/02/2018, 3:50 PMprolink007
11/02/2018, 3:51 PMprolink007
11/02/2018, 3:51 PMprolink007
11/02/2018, 3:52 PMprolink007
11/02/2018, 3:52 PMprolink007
11/02/2018, 3:52 PMHarshit
11/02/2018, 3:52 PMHarshit
11/02/2018, 3:52 PMHarshit
11/02/2018, 3:52 PMHarshit
11/02/2018, 3:52 PMprolink007
11/02/2018, 3:52 PMprolink007
11/02/2018, 3:52 PMprolink007
11/02/2018, 3:53 PMprolink007
11/02/2018, 3:53 PMHarshit
11/02/2018, 3:54 PMprolink007
11/02/2018, 3:54 PMHarshit
11/02/2018, 3:54 PMHarshit
11/02/2018, 3:56 PMprolink007
11/02/2018, 3:56 PMprolink007
11/02/2018, 3:57 PMprolink007
11/02/2018, 3:57 PMprolink007
11/02/2018, 3:57 PMHarshit
11/02/2018, 3:57 PMprolink007
11/02/2018, 3:57 PMprolink007
11/02/2018, 3:58 PMWebSocket connection to '<ws://localhost:5000/>' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSEDHarshit
11/02/2018, 3:58 PMprolink007
11/02/2018, 3:58 PMHarshit
11/02/2018, 4:00 PMHarshit
11/02/2018, 4:00 PMprolink007
11/02/2018, 4:00 PMprolink007
11/02/2018, 4:00 PMprolink007
11/02/2018, 4:00 PMHarshit
11/02/2018, 4:00 PMprolink007
11/02/2018, 4:00 PMHarshit
11/02/2018, 4:02 PMprolink007
11/02/2018, 4:03 PMprolink007
11/02/2018, 4:03 PMHarshit
11/02/2018, 4:03 PMprolink007
11/02/2018, 4:03 PM<ws://localhost:5000/> to the address that i am using for my http link?prolink007
11/02/2018, 4:03 PMprolink007
11/02/2018, 4:04 PMHarshit
11/02/2018, 4:04 PMHarshit
11/02/2018, 4:04 PMHarshit
11/02/2018, 4:04 PMprolink007
11/02/2018, 4:06 PMprolink007
11/02/2018, 4:06 PMprolink007
11/02/2018, 4:07 PMprolink007
11/02/2018, 4:07 PMprolink007
11/02/2018, 4:07 PMprolink007
11/02/2018, 4:07 PMHarshit
11/02/2018, 4:07 PMHarshit
11/02/2018, 4:08 PMprolink007
11/02/2018, 4:57 PM