0

I want to implement websocket by embed-tomcat, but when I run my program, the tomcat can't handle websocket request, it just can handle servlet request, this is my github demo program: https://github.com/ZTW1995/tomcat-websocket-demo. What should I do? I don't want to use any framework.

I use browser open the chat.html to connect my tomcat server by websocket, but tips WebSocket connection to 'ws://localhost:8888/web/bear' failed. The browser console image

0 Answers0