Skip to content

Commit

Permalink
Change the default polling host to gp-v2.replit.com (#113)
Browse files Browse the repository at this point in the history
We switched the host a few days ago, so it's better to reflect reality.

This changes the default polling host to `gp-v2.replit.com`.
  • Loading branch information
lhchavez committed Jan 7, 2022
1 parent ddff09d commit e44b6a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### v7.3.1

Changed the default polling host to gp-v2.replit.com.

#### v7.3.0

Added an optional `pollingHost` field to `ConnectOptions`. This allows callers to override the polling host from gp-v2.herokuapp.com to something else when the polling fallback is used.
Expand Down
2 changes: 1 addition & 1 deletion src/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function getConnectionStr(
): string {
const gurl = urllib.parse(connectionMetadata.gurl);
if (isPolling) {
const host = pollingHost ?? 'gp-v2.herokuapp.com';
const host = pollingHost ?? 'gp-v2.replit.com';
gurl.hostname = host;
gurl.host = host;
gurl.pathname = `/wsv2/${connectionMetadata.token}/${encodeURIComponent(
Expand Down

0 comments on commit e44b6a8

Please sign in to comment.