Messages getting very slow (Delayed)

We have setuped the XMPP chat server on AWS with strophe.js and on our local too. It was working just fine on our local. But on AWS the messages are getting delayed in sending. See this is the server environment Our chat server is on http, but our site where we are accessing the chat server is on https. Although both are on same domain only port different.

Also we are using http binding like . but it is suggested like this .As we have setuped the port 7443 in proxy server. Could this be an issue for this problem?