I have been trying to host the rasa chatbot, i am using ubuntu EC2 instance, dockerised my rasa project now while i am connecting to the my website it gives me the socket error Code of my integration in website
<script>
!( function () {
var productId = "{{productName}}";
var src = "{{ image }}";
let e = document.createElement("script"),
t = document.head || document.getElementsByTagName("head")[0];
(e.src = "https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.js"),
// Replace 1.x.x with the version that you want
(e.async = !0),
(e.onload = () => {
window.WebChat.default(
{
initPayload: `/inform_product{"product":"${productId}"}`,
customData: { "language":"en" },
socketUrl: "chat.manvswild.in/",
title: "MANvsWILD",
subtitle: "Welcome to our Store",
profileAvatar:"https://cdn.shopify.com/s/files/1/0615/4600/4662/files/4MvsW-Brand-Look.png?v=1654590ew242",
// add other props here
// socketPath: "/socket.io/",
},
null
);
}),
t.insertBefore(e, t.firstChild);
})();
localStorage.clear();
document.getElementById("chatbotopen").addEventListener("click", function() {
document.querySelector(".rw-widget-container .rw-open-launcher").click();
});
</script>
Error response from my website wss://chat.manvswild.in/socket.io/?EIO=4&transport=websocket&sid=7XLUX5vqiAcTYWyIAAD0’
also it should work if multiple users uses that bot.