Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        5年前关闭。
                                                                                            
                
        
是否可以编写充当websocket服务器的Java应用程序,而不使用任何Servlet引擎(如jetty,tomcat ....)?

如果是,那有哪些框架?
我遇到了jWebSocket,但是找不到任何示例或在Javadoc中,我如何打开一个简单的Websocket

最佳答案

确保使用jWebSocket可以打开Web套接字,并且有很多相同的示例。

1)https://jwebsocket.org/about-jws/Press-Articles/cross-platform/real-time-cross-platform-communication-websockets

2)https://technology.amis.nl/2012/01/14/implementing-a-java-server-side-component-for-jwebsocket-server-for-websocket-interaction-with-web-clients/

09-29 21:25