Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Spring Boot websocket messaging server. Companion to this React websocket client

The app can be run as a docker container in concert with a mysql service, as specified in docker-compose.yml.

To run the app without docker, just modify the database connection properties in application.properties and just run WebSocketServerApplication.

Establish a websocket connection to localhost:8080/websocket-stomp-endpoint, where you can subscribe to the following topics:

  • /app/messages: responds with the baseline set of existing messages
  • /topic/messages: for any new messages processed by the server

To create a message, just submit content to app/messages/create in the form of:
{ label:string, content:string, timestamp:string }

The app also offers the following REST endpoints:

  • GET "/messages" - returns the set of existing messages
  • POST "/messages" - creates a new message from the body of the request

About

Simple Spring Boot websocket server

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages