Home » Blog » Java Web Sockets

Share This Post

Java WebSockets

Java Web Sockets

Java Web Sockets

Java web sockets are Java's alternative to Ajax. It is actually not specifically Java but an open standard called Web Sockets which is the HTTP alternative to Ajax. Java Web Sockets is Java's implementation of Web Sockets. Basically, in HTTP and Common Gateway Interface (CGI) protocols there is much text-based overhead in each server request and response messages. Prior a hack was made to servers that were unofficial to get around this problem. They called it Ajax. It was made official with Web Sockets.

Efficiency

The jest of it is that now once the web socket is made your web page and Javascript code can make a very concise request with as few characters as possible from the server and get back a very concise response. This reduces bandwidth, speeds communications and reduces lag considerably. Which makes many things possible that otherwise would be impractical. Javascript using the HTML DOM can update pieces of a web page in the browser vs having to reload the entire web page from the server. Surely you can see the advantages for yourself.

Share This Post

Leave a Reply