reading-notes


Project maintained by sanaa-almoghraby Hosted on GitHub Pages — Theme by mattgraham

Using WebSocket to build an interactive web application

This guide walks you through the process of creating a “Hello, world” application that sends messages back and forth between a browser and a server. WebSocket is a thin, lightweight layer above TCP. This makes it suitable for using “subprotocols” to embed messages. In this guide, we use STOMP messaging with Spring to create an interactive web application. STOMP is a subprotocol operating on top of the lower-level WebSocket.

  1. Choose either Gradle or Maven and the language you want to use. This guide assumes that you chose Java.
  2. Click Dependencies and select Websocket.

  3. Click Generate.

  4. Download the resulting ZIP file, which is an archive of a web application that is configured with your choices.