-
Notifications
You must be signed in to change notification settings - Fork 12
/
Defaults.php
33 lines (28 loc) · 958 Bytes
/
Defaults.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace Ably;
class Defaults {
const API_VERSION = '2';
const LIB_VERSION = '1.1.10';
static $restHost = "rest.ably.io";
static $realtimeHost = "realtime.ably.io";
static $port = 80;
static $tlsPort = 443;
static $internetCheckUrl = "https://internet-up.ably-realtime.com/is-the-internet-up.txt";
static $internetCheckOk = "yes\n";
static $fallbackHosts = [
'a.ably-realtime.com',
'b.ably-realtime.com',
'c.ably-realtime.com',
'd.ably-realtime.com',
'e.ably-realtime.com',
];
static function getEnvironmentFallbackHosts($environment) {
return [
$environment."-a-fallback.ably-realtime.com",
$environment."-b-fallback.ably-realtime.com",
$environment."-c-fallback.ably-realtime.com",
$environment."-d-fallback.ably-realtime.com",
$environment."-e-fallback.ably-realtime.com"
];
}
}