Permalink
Browse files

fixed typo inside XEP0206 which was breaking bosh examples, also adde…

…d a disconnect transport method in bosh
  • Loading branch information...
1 parent 8c4ea79 commit 53383af153cea33af0e5b5c41c09d0ddc2d852b9 @abhinavsingh abhinavsingh committed Jul 27, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 xep/xep_0206.php
View
@@ -126,7 +126,7 @@ public function recv() {
// fool xmpp_stream state machine with stream start packet
// and make transition to wait_for_stream_features state
- if($this->recv_cb) call_user_func($this->recv_cb, $this->jaxl->get_start_stream("bosh.jaxl"));
+ if($this->recv_cb) call_user_func($this->recv_cb, $this->jaxl->get_start_stream(new XMPPJid("bosh.jaxl")));
}
_debug("recving for $this->rid");
@@ -196,7 +196,8 @@ public function session_start() {
// fool xmpp_stream state machine with stream start packet
// and make transition to wait_for_stream_features state
- if($this->recv_cb) call_user_func($this->recv_cb, $this->jaxl->get_start_stream("bosh.jaxl"));
+ if($this->recv_cb)
+ call_user_func($this->recv_cb, $this->jaxl->get_start_stream(new XMPPJid("bosh.jaxl")));
$attrs = array(
'content' => 'text/xml; charset=utf-8',
@@ -222,6 +223,10 @@ public function ping() {
$this->send($body);
}
+ public function disconnect() {
+
+ }
+
}
?>

0 comments on commit 53383af

Please sign in to comment.