how to implement Socket.io on Tomcat 7

2019-03-29 03:31发布

We have existing applications which are hosted on tomcat 6 and we are moving to tomcat 7 which provides websockets support.

I wanted to try socket.io in our application, for some of the features based on websockets, since it has very good cross browser support.

I couldn't find any resources online for this combination, socket.io + tomcat,though there are quite a few for (Socket.io + jetty).

Has anyone tried it?

1条回答
相关推荐>>
2楼-- · 2019-03-29 04:20

Though I haven't used, I recommend the Atmosphere project to develop socket.io application on the JVM. Their support is built on top of Atmosphere API which is powered by Servlet 3 spec and all most server-specific features. That means, you don't need to stick Tomcat 7 to use socketio on the JVM.

http://jfarcand.wordpress.com/2012/06/04/writing-socket-io-application-that-runs-on-the-jvm/

查看更多
登录 后发表回答