new()
@:value(null)clientId:Null<String> = null
@:value(false)read onlycsi:Bool = false
@:value(true)emitSMupdates:Bool = true
connect(jid:String, sm:Null<BytesData>):Void
disconnect():Void
newId():String
onIq(type:IqRequestType, tag:String, xmlns:String, handler:Stanza ‑> IqResult):Void
register(domain:String, preAuth:Null<String>):Promise<Stanza>
sendIq(stanza:Stanza, callback:(stanza:Stanza) ‑> Void):Void
sendStanza(stanza:Stanza):Void
removeEventListener(token:EventHandlerToken):Void
Remove an event listener of any type, no matter how it was added or what event it is for.
Parameters:
token
the token that was returned when the listener was added