首页 > 如何用Java搭建websocket服务端..

如何用Java搭建websocket服务端..

客户端已搭建好了。不知服务器该如何搭建


tomcat7里面自带了一个demo


A barebones WebSocket client and server implementation written in 100% Java
https://github.com/TooTallNate/Java-WebSocket


Spring 4已经支持websocket


我写了一个最简单的基于Spring websocket的聊天室,有兴趣可以看看:Spring websocket在线聊天室,这里有基本的讲解和可以运行的代码

【热门文章】
【热门文章】