Spring 4 websocket + Tomcat 7.54 async-supported not working

后端 未结 6 646
名媛妹妹
名媛妹妹 2020-12-19 13:04

I am creating a sample chat application using the Spring websockets and stomp.js , I am using the tomcat 7.54 but while runing the application I am gettting a async-support

6条回答
  •  自闭症患者
    2020-12-19 14:01

    Add the below in nginx.conf file if you are using the reverse proxy.

      # For WebSocket upgrade header
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
    

提交回复
热议问题