@alinalizhang Well, I’m sure you are pasting the snippet code in insert header and footer plugin body section. Its the requirement of Rasa X, that we required HTTPs and DNS but if your server and website running on the same server then I guess you can mention.
Check this link for Websocket (socketUrl) : Your Own Website | Connecting to Messaging and Voice Channels
Do check this thread too: What is the best option to deploy rasa chatbot globally?