Comments (2)
Please open issues in this repository instead: https://github.com/strophe/strophejs
this repository is not maintained any more
Also, you will have to be more precise with your issue.
How does the XML message look like?
Are these two lines actually after another this in the code? Then there is no reason why onMessage should be called.
from strophejs.
XML message like
<body xmlns='http://jabber.org/protocol/httpbind'><message xmlns="jabber:client" to="[email protected]" from="[email protected]/78950f38" type="chat"><body>hello</body></message></body>
I am getting message in onMessage function and this function like this..
function onMessage(msg) {
var to = msg.getAttribute('to');
var from = msg.getAttribute('from');
var type = msg.getAttribute('type');
var elems = msg.getElementsByTagName('body');
if (type == "chat" && elems.length > 0) {
var body = elems[0];
var nmsg = Strophe.getText(body);
}
}
from strophejs.
Related Issues (20)
- Strophe only send message out when new message comes in HOT 1
- How to register a new account on server with strophejs? HOT 1
- login with anonymous users getting not-authorised message HOT 4
- connection problem with multiple tabs HOT 1
- Sending message
- Update sha1.js to 2.2 HOT 1
- Update md5.js to 2.2 HOT 1
- getResponse handles errors inconsistently
- Digest MD5 fails due to error in Base64.js
- Finding Problem with get the session
- Port to Dart
- How to solve CROSS exception HOT 3
- Possible bug in escaping/unescaping text HOT 1
- not getting message in ideal possession long time
- java.util.concurrent.ThreadPoolExecutor
- if ios, connecting, document cannot click,scroll... ,andriod and PC not found this question.
- "XHR open failed.
- "XHR open failed." in BOSH in IE9 with v1.2.8
- How to get MUC-Light room chat history
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strophejs.