Skip to content

Commit

Permalink
Merge pull request #2 from aivarsf/main
Browse files Browse the repository at this point in the history
Remove hard coded client endpoint
  • Loading branch information
endel authored Nov 22, 2023
2 parents 830aca9 + f91ff7d commit 446575d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ export type Connection = {
events: LimitedArray;
};

// export const endpoint = `${window.location.protocol}//${window.location.host}${window.location.pathname.replace(/\/+$/, '')}`;
export const endpoint = "http://localhost:2567"
export const client = new Client(endpoint);
export const baseEndpoint = `${window.location.protocol}//${window.location.host}`;
export const endpoint = `${baseEndpoint}${window.location.pathname.replace(/\/+$/, '')}`;

export const client = new Client(baseEndpoint);

export const global = { connections: [] as Connection[], };

Expand Down

0 comments on commit 446575d

Please sign in to comment.