How to send \ n neutral character in strophe.js

To implement keep alive for Ejabberd, it is recommended that you send the character \nto the server.

I use strophe.js as a client library. How to send a neutral character from a stanza?

+4
source share
1 answer

You can try to encode a character carriage return(CR). That is, you can use your symbol object:

+1
source

Source: https://habr.com/ru/post/1689054/


All Articles