Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
44d094f5
Commit
44d094f5
authored
Aug 15, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a debug option (logs to browser console)
parent
53359b7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
CHANGES.rst
CHANGES.rst
+1
-0
converse.js
converse.js
+8
-2
No files found.
CHANGES.rst
View file @
44d094f5
...
@@ -6,6 +6,7 @@ Changelog
...
@@ -6,6 +6,7 @@ Changelog
- Register presence and message handlers before fetching the roster. Otherwise
- Register presence and message handlers before fetching the roster. Otherwise
some presence notifications might be missed. [jcbrand]
some presence notifications might be missed. [jcbrand]
- Add a debug option (logs to the browser console). [jcbrand]
0.5.2 (2013-08-05)
0.5.2 (2013-08-05)
------------------
------------------
...
...
converse.js
View file @
44d094f5
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
this
.
auto_list_rooms
=
false
;
this
.
auto_list_rooms
=
false
;
this
.
auto_subscribe
=
false
;
this
.
auto_subscribe
=
false
;
this
.
bosh_service_url
=
''
;
// The BOSH connection manager URL. Required if you are not prebinding.
this
.
bosh_service_url
=
''
;
// The BOSH connection manager URL. Required if you are not prebinding.
this
.
debug
=
false
;
this
.
hide_muc_server
=
false
;
this
.
hide_muc_server
=
false
;
this
.
i18n
=
locales
.
en
;
this
.
i18n
=
locales
.
en
;
this
.
prebind
=
false
;
this
.
prebind
=
false
;
...
@@ -2614,8 +2615,13 @@
...
@@ -2614,8 +2615,13 @@
this
.
onConnected
=
function
(
connection
,
callback
)
{
this
.
onConnected
=
function
(
connection
,
callback
)
{
this
.
connection
=
connection
;
this
.
connection
=
connection
;
this
.
connection
.
xmlInput
=
function
(
body
)
{
console
.
log
(
body
);
};
if
(
this
.
debug
)
{
this
.
connection
.
xmlOutput
=
function
(
body
)
{
console
.
log
(
body
);
};
this
.
connection
.
xmlInput
=
function
(
body
)
{
console
.
log
(
body
);
};
this
.
connection
.
xmlOutput
=
function
(
body
)
{
console
.
log
(
body
);
};
Strophe
.
log
=
function
(
level
,
msg
)
{
console
.
log
(
level
+
'
'
+
msg
);
};
}
this
.
bare_jid
=
Strophe
.
getBareJidFromJid
(
this
.
connection
.
jid
);
this
.
bare_jid
=
Strophe
.
getBareJidFromJid
(
this
.
connection
.
jid
);
this
.
domain
=
Strophe
.
getDomainFromJid
(
this
.
connection
.
jid
);
this
.
domain
=
Strophe
.
getDomainFromJid
(
this
.
connection
.
jid
);
this
.
features
=
new
this
.
Features
();
this
.
features
=
new
this
.
Features
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment