Skip to content

ns-code/spring-websocket-angular-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-websocket-angular-client

This project extends the official websocket demo at https://spring.io/guides/gs/messaging-stomp-websocket by adding CORS permission and an Angular v21 websocket client.

This project contains two sub-projects:

ws-server

ws-client

Usage

Run the ws-server using:
.\gradlew bootRun

then run the ws-client using:
ng serve

Accessing http://localhost:4200/demo should give a response like:

demo works!
[ << inputbox >> ][Send]
Response:
=> Client message => Orange
===> Server message => You said: Orange!
=> Client message => Apple
===> Server message => You said: Apple!

About

Angular v21 websocket client to a Spring websocket server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors