Skip to content

Commit 880735a

Browse files
committed
feat: use ws url
1 parent 3c09ad7 commit 880735a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/requests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ let proxyURL = null;
33
let activeTripObj;
44
let currentRequestTry = 0;
55

6-
const GIRA_GRAPHQL_ENDPOINT = "https://c2g091p01.emel.pt/api/graphql";
6+
// const GIRA_GRAPHQL_ENDPOINT = "https://c2g091p01.emel.pt/api/graphql";
77
const GIRA_GRAPHQL_WS_ENDPOINT = "wss://c2g091p01.emel.pt/ws/graphql";
8+
const GIRA_GRAPHQL_ENDPOINT = GIRA_GRAPHQL_WS_ENDPOINT.replace("wss://", "https://");
89
const GIRA_AUTH_ENDPOINT = "https://api-auth.emel.pt/auth";
910
const GIRA_TOKEN_REFRESH_ENDPOINT = "https://api-auth.emel.pt/token/refresh";
1011
const GIRA_USER_ENDPOINT = "https://api-auth.emel.pt/user";

0 commit comments

Comments
 (0)