Changed websocket connection string.

This commit is contained in:
Patrick Fic
2019-12-11 23:24:32 -08:00
parent aa21c51023
commit f6c62da40a
5 changed files with 8 additions and 20 deletions

View File

@@ -1,3 +1,3 @@
REACT_APP_GRAPHQL_ENDPOINT=https://bodyshop-dev-db.herokuapp.com/v1/graphql
REACT_APP_GRAPHQL_ENDPOINT_WS=ws://bodyshop-dev-db.herokuapp.com/v1/graphql
REACT_APP_GRAPHQL_ENDPOINT_WS=wss://bodyshop-dev-db.herokuapp.com/v1/graphql
REACT_APP_GA_CODE=217352234

View File

@@ -4,15 +4,13 @@
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="theme-color" content="#002366" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="logo192.png" />
<!-- Roboto Font for Material Design UI -->
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> -->
<!-- <link rel="apple-touch-icon" href="logo192.png" /> -->
<link rel="apple-touch-icon" href="logo240.png" />
<!--
manifest.json provides metadata used when your web app is installed on a

View File

@@ -20,6 +20,6 @@
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
"theme_color": "#002366",
"background_color": "#000000"
}

View File

@@ -24,7 +24,7 @@ export const GET_ALL_OPEN_JOBS = gql`
`;
export const SUBSCRIPTION_ALL_OPEN_JOBS = gql`
subscription AllJobs {
subscription SUBSCRIPTION_ALL_OPEN_JOBS {
jobs {
id
updated_at
@@ -46,12 +46,3 @@ export const SUBSCRIPTION_ALL_OPEN_JOBS = gql`
}
}
`;
export const test = gql`
subscription s {
masterdata {
key
value
}
}
`;

View File

@@ -6,8 +6,7 @@ import { Table, Divider, Icon } from "antd";
import {
GET_ALL_OPEN_JOBS,
SUBSCRIPTION_ALL_OPEN_JOBS,
test
SUBSCRIPTION_ALL_OPEN_JOBS
} from "../../graphql/jobs.queries";
export default function JobsPage() {