xml-not-well-formed error when sending a message
Closed this issue · 0 comments
jwoertink commented
When I try to send a message, it causes me to log out and then throws an error:
class User
constructor: ->
@xmpp = require('simple-xmpp')
#.... other stuff
connect: ->
@xmpp.connect
jid: "#{@extension}@#{@server}"
password: @settings.password
host: @server
port: 5222
@xmpp.on 'error', (err)->
console.error('XMPP ERROR', err)
@xmpp.on 'close', ->
console.log('connection has been closed!')
sendMessage: (user, message)->
target = "#{user}@#{@server}"
@xmpp.send(target, message)
I sign in, and can set presence just fine. It's only when I try to send a message when it logs me out and throws that error. Using version 0.1.92