I am developing an ionic-cordova application with chat via Openfire. I can’t get the si-filetransfer plugin to work
This are the npm packages:
"strophe.js": "^1.2.14",
"strophejs-plugin-http-file-upload": "^1.0.3",
"strophejs-plugins": "0.0.7",
and this the code in file .ts:
import { Strophe } from 'strophe.js';
........
this.connection.si_filetransfer.addFileHandler(self.fileHandler);
this.connection.ibb.addIBBHandler(self.ibbHandler);
but 'connection.si_filetransfer’ and ‘connection.ibb’ are always ‘undefined’
How can I import si_filetransfer and make it working?
Can anyone help me?
thanks in advance
--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/23d84214-4554-432f-bb8b-658a2f73a166%40googlegroups.com.
require('strophe.si-filetransfer')
require('strophejs-plugins-si-filetransfer')
require('si-filetransfer')
Cannot find module "..."
Hey, Im not sure, but probably you need to require the package so it injects its code to strophe, (not import) ex: top line of file put: require('strophejs-plugin-http-file-upload')
On 25 Mar 2020, at 09:19, 'Maurizio Poli' via Strophe <str...@googlegroups.com> wrote:
hi,I am developing an ionic-cordova application with chat via Openfire. I can’t get the si-filetransfer plugin to work
This are the npm packages:
"strophe.js": "^1.2.14", "strophejs-plugin-http-file-upload": "^1.0.3", "strophejs-plugins": "0.0.7",
and this the code in file .ts:
import { Strophe } from 'strophe.js'; ........ this.connection.si_filetransfer.addFileHandler(self.fileHandler); this.connection.ibb.addIBBHandler(self.ibbHandler);
but 'connection.si_filetransfer’ and ‘connection.ibb’ are always ‘undefined’
How can I import si_filetransfer and make it working?
Can anyone help me?
thanks in advance
--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to str...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/b8837b25-7dd5-4939-8963-dae25f7596ad%40googlegroups.com.
"strophejs-plugins": "0.0.7",
require('strophejs-plugins');
Cannot find module"strophejs-plugin"
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/b8837b25-7dd5-4939-8963-dae25f7596ad%40googlegroups.com.
require('strophejs-plugin-http-file-upload');
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/8df5a058-e5b4-492e-9581-12bdee15684c%40googlegroups.com.
try only
require('strophejs-plugin-http-file-upload');
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/8df5a058-e5b4-492e-9581-12bdee15684c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/c34f654f-62e8-405c-859b-99ecf3892117%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/c34f654f-62e8-405c-859b-99ecf3892117%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/209454d6-f1f9-4a9c-9f0f-474528bc2679%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/209454d6-f1f9-4a9c-9f0f-474528bc2679%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strophe/f1b5bc3b-865b-4a8e-b4a9-b509030a1269%40googlegroups.com.