简体   繁体   中英

any API for to implement web-sockets in java

I have a requirement to do a web based interactive application in which server could push data in to the clients(web browser , android phone or JME phone). I have suggested to use Websockets rather than reverse ajax. Is there any nice framework for java to implement websockets. Please suggest.

The following very similar sounding Java servers / frameworks have web socket support:

Note that web sockets aren't universally supported as a result of security issues (and because Microsoft doesn't want to).

You could also consider looking at some of the JMS providers that provide JMS to web sockets eg HornetQ and ActiveMQ using Stomp.

Grizzly also has websockets support for what it's worth. But one reason to use websockets rather than java.net.Socket is that websockets can traverse firewalls and proxies transparently without having to reconfigure network ports/policies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM