Skip to content

Commit

Permalink
Merge pull request #47 from allevo/v3.x
Browse files Browse the repository at this point in the history
Add protocol to configuration
  • Loading branch information
abhinavsingh committed Sep 16, 2014
2 parents b3ec7f0 + 6137802 commit 4c1a510
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jaxl.php
Expand Up @@ -339,7 +339,10 @@ public function unsubscribed($to) {
}

public function get_socket_path() {
return ($this->cfg['port'] == 5223 ? "ssl" : "tcp")."://".$this->cfg['host'].":".$this->cfg['port'];
$protocol = ($this->cfg['port'] == 5223 ? "ssl" : "tcp");
if ($this->cfg['protocol'])
$protocol = $this->cfg['protocol'];
return $protocol."://".$this->cfg['host'].":".$this->cfg['port'];
}

public function retry() {
Expand Down

0 comments on commit 4c1a510

Please sign in to comment.