I just wondering if someone can explain me the difference\destination of Jetty WebSockets and Java Sockets.
What I've read:
Jetty WebSockets:
- Fast data exchange for applications with intensive communication
- Cross-domain application
- Complex applications with multiple asynchronous blocks on a page
- Applications adhere to standards
- "Long-playing" applications
Question1: Can you explain me 3rd, 4th and 5th statements please?
Java Sockets:
- Non-synchronous data exchange
Question2: What attractive possibilities provides Java Sockets which makes them so widely used?
Difference between Java Sockets & Jetty WebSockets:
I've read this post, but still can't understand it.
yes, they are really different. WebSockets typically run from browsers connecting to Application Server over a protocol similar to HTTP that runs over TCP/IP. So they are primarily for Web Applications that require a permanent connection to its server. On the other hand, plain sockets are more powerful and generic. They run over TCP/IP but they are not restricted to browsers or HTTP protocol. They could be used to implement any kind of communication.
Question3: Can you explain me what do they mean by "powerful and generic"? Example please?
Question4: How to decide what to use Java Sockets or Jetty WebSockets?