Converse converse.js

Class: Builder

Builder()

Constructor: Strophe.Builder Create a Strophe.Builder object.

The attributes should be passed in object notation. For example

let b = new Builder('message', {to: 'you', from: 'me'}); or let b = new Builder('messsage', {'xml:lang': 'en'});

Parameters: (String) name - The name of the root element. (Object) attrs - The attributes for the root element in object notation.

Returns: A new Strophe.Builder.