e.sendChatMessage is not a function
Hi.
I'm using the last WEB SDK 1.5.3, in a jquery project and after upgrade the js files, vendor and sdk, i started to get this error message.
Uncaught TypeError: e.sendChatMessage is not a function
at Object.sendChatMessage (rainbow-sdk.min.js:7)
at Object.sendMessageToConversation (rainbow-sdk.min.js:7)
at <anonymous>:1:15
I cand do everything but sendind messages.
jquery version is 3.3.1
Thank you in advance.
-
Hi,
would you be able to provide us the following information:
1. On which platform is your application running (Sandbox / Rainbow official)?
2. Which version of AngularJS do you use?
3. Complete logs- before and after the event
4. Piece of code responsible for calling sendChatMessage API
Thanks in advance.
Best Regards,
Konrad Hyzy
-
Hi Honrad.
I'm using the header section of the documentation with the last SDK version in Rainbow Official.<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.9/es5- "></script> <script src="//cdnjs.cloudflare.com/shim.min.js ajax/libs/es6-promise/4.0.5/ "></script> <script src="//code.jquery.com/jquery-es6-promise.min.js 2.1.3.min.js "></script> <script src="//cdn.jsdelivr.net/momentjs/2.15.1/moment-with- "></script> <script src="//cdnjs.cloudflare.com/locales.min.js ajax/libs/angular.js/1.5.7/ "></script> <script src="./vendors-sdk.min.js"></sangular.min.js cript > <script src="./rainbow-sdk.min.js"></script > <script src="./index.js"></script>And i use the send function in this code:function enviarMensajeAConversacion(
textoMensaje, conversacion) { if(conversacion != null) { rainbowSDK.im. sendMessageToConversation( conversacion,textoMensaje); } } I'll send you the log as soon as i can get it.
Thank you.
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios