OpenSource For You

Implementi­ng HTML5 WebSockets Using Java

Intended for those who know the basics of HTML, JavaScript, Java and JSP, this article shows readers how to use the new HTML5 WebSocket API, which allows full duplex communicat­ion between client and server.

-

If you open a connection to a server with the new ws protocol (unlike AJAX, where clients poll the server for updates), WebSocket allows the server to send messages to the clients—to push data instead of pulling it.

the server, and

close() to close an establishe­d connection.

 ??  ??

Newspapers in English

Newspapers from India