A Java Client for a WebSockets API 1. Introduction HTTP (Hypertext Transfer Protocol) is a stateless request-response protocol. Its simple design makes it very scalable but unsuitable and inefficient for highly interactive real-time web applications because of the amount of overhead that needs to be transmitted along with every request/response.… Continue Reading websockets-api-java-spring-client

Spring WebSockets: Build an User Chat 1. Introduction In this tutorial, we’ll describe how to use Spring WebSockets to send STOMP messages to a single user. That’s important because we sometimes don’t want to broadcast every message to every user. Besides that, we’ll demonstrate how to send these messages in a… Continue Reading spring-websockets-send-message-to-user

Intro to WebSockets with Spring 1. Overview In this article, we’ll create a simple web application that implements messaging using the new WebSocket capabilities introduced with Spring Framework 4.0. WebSockets is a bi-directional, full-duplex, persistent connection between a web browser and a server. Once a WebSocket connection is established the… Continue Reading websockets-spring

Reactive WebSockets with Spring 5 1. Overview In this article, we’re going to create a quick example using the new Spring Framework 5 WebSockets API along with reactive features provided by the Spring WebFlux Framework. WebSocket is a well-known protocol that enables full-duplex communication between client and server, generally used… Continue Reading spring-5-reactive-websockets

WebSockets with AsyncHttpClient 1. Introduction AsyncHttpClient (AHC) is a library, based on Netty, created to easily execute asynchronous HTTP calls and communicate over the WebSocket protocol. In this quick tutorial, we’ll see how we can start a WebSocket connection, send data and handle various control frames. 2. Setup The latest… Continue Reading async-http-client-websockets