Home » websocket

Tag Archives: websocket

Java Servlet Websocket Example

In this article we illustrate a simple chat program using a Websocket endpoint. The Java API for websocket provides both client and server api’s and can be found in the javax.websocket javax.websocket.server packages accordingly. The example article will do a brief dive into the mechanics of Websockets from a Java perspective and then it will demonstrate some of it’s mechanics via a ...

Read More »

Jetty WebSocket Example

1.Introduction This article is about WebSockets with Jetty. In this example we will give brief information on WebSockets and show how to implement WebSocket Servers and Clients using Jetty WebSocket APIs. In addition to these, an example HTML+JavaScript client interacting with the Server through WebSockets will be provided. 2.WebSockets WebSocket is a standard protocol facilitating full-duplex communication over a single ...

Read More »