Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eyrafabdullayev/spring-boot-websocket

Sample Chat Application using Spring Boot and WebSocket
https://github.com/eyrafabdullayev/spring-boot-websocket

chat chatroom spring spring-boot websocket

Last synced: 28 days ago
JSON representation

Sample Chat Application using Spring Boot and WebSocket

Awesome Lists containing this project

README

        

# Spring Boot and Web Socket

## About
Sample Chat Application using Spring Boot and WebSocket.

#### What is WebSocket
Like ``http``, ``websocket`` is also a communication protocol which provides bi-directional communication channel between a server and client. \
This is the main reason why websocket is prefered over Http where the client and server need to exchange information at high frequency and with lower latency.

#### STOMP
STOMP stands for ``Streaming Text Oriented Messaging Protocol``.
WebSocket is just a communication protocol. \
He doen't know ``How to send a message only to users who are subscribed to a particular topic, or how to send a message
to a particular user``. We need STOMP for these. \
Spring provides default support for it but you can choose any other messaging protocol such as RabbitMQ or ActiveMQ.

## Running
``$ docker run -i -p 8080:8080 eyrafabdullayev/chatapplication:latest ``