Differential D15705 Diff 37847 src/applications/notification/client/PhabricatorNotificationServerRef.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/client/PhabricatorNotificationServerRef.php
| Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | public function getURI($to_path = null) { | ||||
| } | } | ||||
| return $uri; | return $uri; | ||||
| } | } | ||||
| public function getWebsocketURI($to_path = null) { | public function getWebsocketURI($to_path = null) { | ||||
| $instance = PhabricatorEnv::getEnvConfig('cluster.instance'); | $instance = PhabricatorEnv::getEnvConfig('cluster.instance'); | ||||
| if (strlen($instance)) { | if (strlen($instance)) { | ||||
| $to_path = $to_path.$instance.'/'; | $to_path = $to_path.'~'.$instance.'/'; | ||||
| } | } | ||||
| $uri = $this->getURI($to_path); | $uri = $this->getURI($to_path); | ||||
| if ($this->getProtocol() == 'https') { | if ($this->getProtocol() == 'https') { | ||||
| $uri->setProtocol('wss'); | $uri->setProtocol('wss'); | ||||
| } else { | } else { | ||||
| $uri->setProtocol('ws'); | $uri->setProtocol('ws'); | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||