How to Send Push Notifications with Spring Boot Using Websockets and STOMP

preview_player
Показать описание
In this video we will be looking at how we can send a push notification to a client using spring boot application.
We make use of WebSockets and STOMP protocol to send notifications to with all the clients or to specific client.

-----------------
Gear I use :
-----------------

---- Chapters ---------

00:00 - Introduction
00:36 - Create A Project
01:02 - Project Overview
01:15 - WebSocket And STOMP Configuration
01:47 - Broker Configuration
02:19 - Application Destination Prefix
02:39 - Message Controller
03:06 - Understanding Message Controller Destination
03:31 - HTML Client Application
04:20 - Understanding Client Application
04:49 - Starting Application
05:08 - Sending Notification to All
05:39 - Sending Specific User Notification Overview
06:03 - Adding Spring Security
06:11 - Security Configuration
07:00 - Handling Specific User Notifications
07:48 - HTML Client Code For Specific User Notification
08:00 - Understanding How Specific User Notification Works
08:43 - Understanding Message Controller Handler For Notification
09:30 - Sending Specific User Notification
10:58 - Conclusion

Music Credits:-

Sappheiros - Awake
----------------------------
Social Media
--------------------------------------------------
Рекомендации по теме
Комментарии
Автор

best explanation I found so far. Especially the mapping to the endpoints. Well done!

uhuebner
Автор

Nice,

few points to add : ws endpoint should not be permitted All, and for high availability use rabbit mq

sirfinsaan
Автор

Thank you very much. I'm writing the comment to raise the video in ranking, because it wasn't the first i got for my request.

euzkqet
Автор

Very beautiful explaination. Thanks a lot!

muninkumbhakar
Автор

very helpful.
but u have given explanation on your readymade code.
ur vid was very helpful, so i searched "code" on chrome browser (not google)
found the last comment asking for code and u had given the link.
after long time
but it would be better if u give this same link under video description.

once again, very useful
🙂

masoomsanadi
Автор

the best explanation thanks . I searched for 3 days

hamidabdukadirov
Автор

your explanation helped me alot. thank you!

khairinaatiqah
Автор

Great explanation, so the private mesaage will only receive by the particular receiver...In your video the receiver must have log in to have an message notif, but there is a condition when the reciever log out and at a certain time the receiver log in again but there is no message in. It is possible If we add like cache to hold the data and consume by the receiver after login ? We can achieve it if using queueing, but if only using spring boot websocket is it possible?

yuriastoria
Автор

Thanks for explanation. But I don't really like the way spring abstracts things, sometimes feels like a black box.

brunocardoso
Автор

I was also looking for the same thing but my research ends here. Thanks.

Itsarpitgupta
Автор

Me ayudó muchisimo tu video. Mil gracias!!

matzam
Автор

Hi, is there a way to send specific user a message without using spring security and login? I tried it but it’s not working.

RahulDutta-ptxl
Автор

Can I test it on postman? If so, how?

reynaldiichsanrahmawan
Автор

Hi! Thanks for video, really very useful!
I have one question: How to configure Websocket for using wss/https protocol? Will it be enough to add security configuration for websocket or it needs more specific configuration of webserver?

arturmazurets
Автор

Could you show me consuming from postman

rajeshb
Автор

HI, Thanks for the video. can we access the stomp endpoint /app/ in postman. i am able to connect websocket endpoint but when i try to access stomp endpoint am getting 404. please provide the steps if you aware of this.

priyaanbu
Автор

can we maintain a history or how to make that notification apper when that specific user logged in?

vishwag
Автор

Can kafka push notifcation to moblie ? How to do that ?

phanhuudong
Автор

what if there is no authentication required or if the authentication is handled in the gateway?

zndmcpt
Автор

Will this work in stateless rest API and separate UI client

BeingDeveloperWithAB
welcome to shbcf.ru