Тёмный
No video :(

Spring Boot Websocket Chat Application Example | Java Techie 

Java Techie
Подписаться 177 тыс.
Просмотров 106 тыс.
50% 1

This video explain you How to build a chat application using Spring Boot and Web Socket
#JavaTechie #SpringBoot #WebSocket
GitHub:
github.com/Jav...
Blogs:
javagyanmantra...
Facebook:
/ 919464521471923
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 153   
@saurabhpal8048
@saurabhpal8048 4 года назад
Please make more videos like this like creating video streaming app, storing messages to database in this same chat application and also if possible only two way chat application if possible
@nabinkhatiwada4597
@nabinkhatiwada4597 3 года назад
Hi sir. Thank you very much for this awesome video. Can you share how to do private chat as well. Let's say there are more than 2 users and they need to chat with each other. Thanks in advance.
@aayushkc2306
@aayushkc2306 4 года назад
can you create the video series of private messaging and public messa ging using mysql + rabbit mq + sping data jpa?? How can i make a real time system like push notifications??
@viveksemwal2537
@viveksemwal2537 3 года назад
Great video sir very well explained
@deveshmishra6611
@deveshmishra6611 5 лет назад
Your content is unique ,keep going .
@ANKITGUPTA-kp9kb
@ANKITGUPTA-kp9kb 4 года назад
Video contains really good content. Do you have any Idea regarding video chat?
@Javatechie
@Javatechie 4 года назад
No Ankit not aware on this
@sarojsahoo8763
@sarojsahoo8763 5 лет назад
Great Video bro keep it up need some time to digest this...
@user-sb3ds9om4c
@user-sb3ds9om4c 4 года назад
Thank you very much for the video. Great quality and code
@snehakavathekarchavan571
@snehakavathekarchavan571 3 года назад
really good.. is there any video chat application available..?
@Javatechie
@Javatechie 3 года назад
Yes please checkout websocket example
@coderanger75
@coderanger75 4 года назад
Thank you for this great tutorial!
@blasttrash
@blasttrash 5 лет назад
Nice tutorials. You should have more subscribers. :)
@ChandanKumar-ou9fr
@ChandanKumar-ou9fr 2 года назад
This is really awesome 😍
@chintu_singh91
@chintu_singh91 5 лет назад
Thanks for upload Basant Bhai...
@Tobi1200
@Tobi1200 2 года назад
Thank you very much!
@josephmuthui7394
@josephmuthui7394 5 лет назад
nice work ,
@rthiaga
@rthiaga 5 лет назад
Awesome content. Keep rocking.
@arceliomontezuma3458
@arceliomontezuma3458 2 года назад
Muchas gracias por la información | Thank you so much for the information
@easyappscompany
@easyappscompany 5 лет назад
Nice
@johndesilva1594
@johndesilva1594 3 года назад
Hi! Thank you for this video mate, I just want to know, will this work on different networks/PCs? I`m still learning java so please ignore if you feel like I'm an idiot :P
@Javatechie
@Javatechie 3 года назад
Yes it will work anywhere no prob That's why java is platform independent language
@johndesilva1594
@johndesilva1594 3 года назад
@@Javatechie Thanks a lot! 🙂
@RaviVerma-bg6ul
@RaviVerma-bg6ul 4 года назад
Gajab. Awesome
@miguelmagbitang3036
@miguelmagbitang3036 3 года назад
I'm getting dependency errors after adding the dependency for reactor netty. Do you have any idea on how to solve this? Thank you sir. Cannot resolve jakarta.annotation:jakarta.annotation-api:1.3.5 Cannot resolve org.ow2.asm:asm:9.1 Cannot resolve jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 Cannot resolve org.junit.platform:junit-platform-engine:1.7.2 Cannot resolve org.springframework.boot:spring-boot-starter-websocket:2.5.1 Cannot resolve org.springframework:spring-websocket:5.3.8 Cannot resolve org.apache.logging.log4j:log4j-to-slf4j:2.14.1 Cannot resolve org.junit.jupiter:junit-jupiter-params:5.7.2 Cannot resolve org.springframework.boot:spring-boot-test-autoconfigure:2.5.1 Cannot resolve org.springframework.boot:spring-boot-starter-logging:2.5.1 Cannot resolve org.springframework:spring-messaging:5.3.8 Cannot resolve org.apache.tomcat.embed:tomcat-embed-websocket:9.0.46 Cannot resolve org.opentest4j:opentest4j:1.2.0 Cannot resolve org.slf4j:slf4j-api:1.7.30 Cannot resolve com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3 Cannot resolve net.minidev:accessors-smart:2.4.7 Cannot resolve ch.qos.logback:logback-core:1.2.3 Cannot resolve org.springframework.boot:spring-boot-starter-json:2.5.1 Cannot resolve org.springframework:spring-web:5.3.8 Cannot resolve org.springframework.boot:spring-boot-starter-tomcat:2.5.1 Cannot resolve org.skyscreamer:jsonassert:1.5.0 Cannot resolve org.assertj:assertj-core:3.19.0 Cannot resolve org.springframework.boot:spring-boot:2.5.1 Cannot resolve com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3 Cannot resolve com.fasterxml.jackson.module:jackson-module-parameter-names:2.12.3 Cannot resolve net.bytebuddy:byte-buddy-agent:1.10.22 Cannot resolve com.vaadin.external.google:android-json:0.0.20131108.vaadin1 Cannot resolve org.springframework.boot:spring-boot-starter:2.5.1 Cannot resolve org.xmlunit:xmlunit-core:2.8.2 Cannot resolve org.springframework.boot:spring-boot-starter-web:2.5.1 Cannot resolve com.jayway.jsonpath:json-path:2.5.0 Cannot resolve org.slf4j:jul-to-slf4j:1.7.30 Cannot resolve org.springframework:spring-beans:5.3.8 Cannot resolve org.apache.logging.log4j:log4j-api:2.14.1 Cannot resolve org.springframework:spring-jcl:5.3.8 Cannot resolve net.minidev:json-smart:2.4.7 Cannot resolve com.fasterxml.jackson.core:jackson-annotations:2.12.3 Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.5.1 Cannot resolve org.springframework:spring-core:5.3.8 Cannot resolve com.fasterxml.jackson.core:jackson-core:2.12.3 Cannot resolve org.apache.tomcat.embed:tomcat-embed-core:9.0.46 Cannot resolve org.yaml:snakeyaml:1.28 Cannot resolve org.springframework:spring-test:5.3.8 Cannot resolve org.junit.jupiter:junit-jupiter-api:5.7.2 Cannot resolve net.bytebuddy:byte-buddy:1.10.22 Cannot resolve org.objenesis:objenesis:3.2 Cannot resolve org.springframework:spring-webmvc:5.3.8 Cannot resolve com.fasterxml.jackson.core:jackson-databind:2.12.3 Cannot resolve org.springframework.boot:spring-boot-test:2.5.1 Cannot resolve org.springframework:spring-context:5.3.8 Cannot resolve org.junit.jupiter:junit-jupiter:5.7.2 Cannot resolve org.apache.tomcat.embed:tomcat-embed-el:9.0.46 Cannot resolve org.mockito:mockito-core:3.9.0 Cannot resolve jakarta.activation:jakarta.activation-api:1.2.2 Cannot resolve org.springframework:spring-expression:5.3.8 Cannot resolve org.springframework:spring-aop:5.3.8 Cannot resolve org.mockito:mockito-junit-jupiter:3.9.0 Cannot resolve org.apiguardian:apiguardian-api:1.1.0 Cannot resolve org.junit.jupiter:junit-jupiter-engine:5.7.2 Cannot resolve org.junit.platform:junit-platform-commons:1.7.2 Cannot resolve org.springframework.boot:spring-boot-starter-reactor-netty:2.5.1 Cannot resolve org.springframework.boot:spring-boot-starter-test:2.5.1 Cannot resolve org.hamcrest:hamcrest:2.2 Cannot resolve ch.qos.logback:logback-classic:1.2.3
@ahlembenfraj2091
@ahlembenfraj2091 2 года назад
when I add the application.properties in resources i get error "Could not connect to WebSocket server. Please refresh this page to try again!" what should i do !! please any help
@RajneeshKumar-xf1gg
@RajneeshKumar-xf1gg 4 года назад
I am able to start the tomcat service, but the browser client is giving issues. Is it possible to create a POJO java class to consume this service routs? please suggest how.
@Javatechie
@Javatechie 4 года назад
Could you please mention your issue
@mdmimran2490
@mdmimran2490 5 лет назад
Nice video!
@wellingtonlins6906
@wellingtonlins6906 4 года назад
Good job! Thank you so much for sharing. How can I send private messages for only one user and not to all? There is an anotation called @SendToUser but ... Can you to do a video whit it?
@Javatechie
@Javatechie 4 года назад
Thank you , as many people already suggested same content definitely will upload video. If you like this content do subscribe and share please
@chitrangsharma
@chitrangsharma 3 года назад
Can't we separate the front-end ? Like running front-end in different port I tried but not getting responses!!
@Javatechie
@Javatechie 3 года назад
Yes we can
@footballaddict2868
@footballaddict2868 3 года назад
Hy, I'm begginer and new in web development. Please can you tell me is this chat application also an MVC application and what should be "view" in this application? Thanks
@Javatechie
@Javatechie 3 года назад
View should go your ui page
@suraj6110
@suraj6110 4 года назад
Can u please make a video for person to person chat application
@bashful88
@bashful88 2 года назад
Great Video. But I am facing one issue If we deploy this to an ecs cluster with more than one taskand try to connect from the client javascript, may be one connection goes to task 1 and second goes to task 2. In this case the chat is not working.
@Javatechie
@Javatechie 2 года назад
Yes you are correct . This is just a simple example to demonstrate websocket .
@bashful88
@bashful88 2 года назад
@@Javatechie thanks. The video is great and explains all the points well and easy to understand how everything thing is connected together 👍🙂
@Javatechie
@Javatechie 2 года назад
Thanks buddy . Glad to hear this from you 🤗
@theritesh973
@theritesh973 5 лет назад
Nice, Thanks!
@karishmarawat1359
@karishmarawat1359 Год назад
Hi Javatechie, Can you pls upload video on chatbot implementation for ecommerce like zomato,swiggy,flipkart?
@sreenureddy994
@sreenureddy994 5 лет назад
Nice tutorials . I have one question how we can make private chat with one to one or one to may or group
@Javatechie
@Javatechie 5 лет назад
That we need to play with session and port ,if you want one to one chat better to go for angular
@tuannobi
@tuannobi 2 года назад
I want to create chat application and history can be saved in database. Which keywords for them?
@rchelicopterspace_0309
@rchelicopterspace_0309 4 года назад
Thank's you a lot bro. I want to ask if your code can evolve into a chat application with data base similar to a complete application like telegram. Of course not completely complete, just can grow up :-)
@nilanjan54
@nilanjan54 4 года назад
Can you please show how we can make the front-end in Angular of the application.
@Javatechie
@Javatechie 4 года назад
Yes I will try this
@SurajGupta-tc2pn
@SurajGupta-tc2pn 3 года назад
@@Javatechie when will you release the video?
@sujithg5873
@sujithg5873 5 лет назад
Hi, how to send message a particular client?
@paunraja9724
@paunraja9724 5 лет назад
Before sending data to websocket can i read the data from external broker (rabbit mq) and doing the modification and I needs to sent the data to socket
@Javatechie
@Javatechie 5 лет назад
Yes we can why not , so while sending payload itself you can do modification Or else use listener / interceptor
@paunraja9724
@paunraja9724 5 лет назад
@@Javatechie i tried interceptor. But am not able read the data from broker
@Javatechie
@Javatechie 5 лет назад
@@paunraja9724 I will check this out and let you know
@sunilmanawadkar515
@sunilmanawadkar515 3 года назад
Nice , can you please upload comment system code in spring boot
@Javatechie
@Javatechie 3 года назад
It's there in video description please have a look
@lonnguyenvan6562
@lonnguyenvan6562 2 года назад
Thank you so much for the video, can I use this one and add it into my website? and how can I put it in a function of mine?
@Iamanujkumar2011
@Iamanujkumar2011 3 года назад
i think this video has been corrupted. The video feed is not available. please upload again.
@Javatechie
@Javatechie 3 года назад
I can able to view complete video .
@Iamanujkumar2011
@Iamanujkumar2011 3 года назад
@@Javatechie yes, now i am able to. It might be a glitch.
@0sentinela0
@0sentinela0 4 года назад
hello thanks for the tutorial, but I have a small problem, my model is called Message but when I make the request I get the following error: org.springframework.messaging.converter.MessageConversionException: Unable to convert payload with type='com.sockets.socket.model.Message', contentType='null' I hope you can help me, thanks.
@ashutoshanand7944
@ashutoshanand7944 4 года назад
Hi , could you please let me know how we can implement file sharing along with messaging? Thank you in advance
@Javatechie
@Javatechie 4 года назад
Not tried this scenario I will check and let you know
@sravantatikonda1425
@sravantatikonda1425 4 года назад
I dont think the socket way works for this scenario. Only way is to have a rest call with Multipart param and request body for message content.
@technocrats5789
@technocrats5789 4 года назад
Is there any example with oauth2 Authorization with sockjs ?
@hindire
@hindire 4 года назад
How to generate folder "static" in "src/main/resources"? It is in 15:10 minutes. Please help.
@Javatechie
@Javatechie 4 года назад
You no need to create manually , if you will add web dependency while create spring boot application then it will create project structure for you .
@hoanle2320
@hoanle2320 5 месяцев назад
thank
@SumanKumar-xf8kv
@SumanKumar-xf8kv 5 лет назад
hi great job but can u use high resolution very difficult to watch the video
@Javatechie
@Javatechie 5 лет назад
Video resolution is high only boss it's 1080 P just check in video by default it will run on 360p so just change it to 720 or 1080 P you can able to see HD resolution of it .
@ivanaguayo3449
@ivanaguayo3449 5 лет назад
Yo, the "Sender left" or "Sender joined" doesn't appear, what could it be?
@Javatechie
@Javatechie 5 лет назад
Need changes in Java script function
@ivanaguayo3449
@ivanaguayo3449 5 лет назад
@@Javatechie Will start looking, thank you for answering!
@JavaWallah-tp3ue
@JavaWallah-tp3ue 4 года назад
can i send msg to a perticular user u have any idea about it???
@Javatechie
@Javatechie 4 года назад
Need to use private chat that we can customize
@Emerson-mv4hm
@Emerson-mv4hm 4 года назад
@Java Techie Yeah!! It would be good to know!!
@lucasromagnoli9459
@lucasromagnoli9459 4 года назад
Well done dude, thanks for sharing your knowledge
@amitsharma-ri3qk
@amitsharma-ri3qk 3 года назад
Please help for private chat option.. This example is not useful for real world problem.
@besooab8810
@besooab8810 4 года назад
Can you show us how to build video chat like zoom using socket io ?
@quangnvn
@quangnvn 4 года назад
Hi, do you have any solutions how to make video chat with spring? Thank you!
@Javatechie
@Javatechie 4 года назад
Video chat not sure need to check
@teklehaimanotatikilt1435
@teklehaimanotatikilt1435 5 лет назад
teacher can you please make videos on spring boot web flow.
@Javatechie
@Javatechie 5 лет назад
It's on my bucket soon I will try to upload
@shivamvishwakarma4375
@shivamvishwakarma4375 5 лет назад
Hello sir I can't configure spring starter project on my eclipse.. please help
@Javatechie
@Javatechie 5 лет назад
Could you please tell me what error you are facing ?
@dailycontentguru
@dailycontentguru 4 года назад
how to send message to a specific user, not to everyone.
@prajwal_orekondi
@prajwal_orekondi 2 года назад
hey, i am getting an error like could not connect to websocket server. please help
@MkVlogs135
@MkVlogs135 2 года назад
I got same error could you tell me solution of it
@teklehaimanotatikilt1435
@teklehaimanotatikilt1435 5 лет назад
can you please make videos spring boot web flow?
@hrinternal5051
@hrinternal5051 4 года назад
dada bhalo job....aapni ki bengali>
@Javatechie
@Javatechie 4 года назад
No From odisha 🤪
@oosam2
@oosam2 5 лет назад
Is there a limit for number of connecting clients????
@Javatechie
@Javatechie 5 лет назад
In this example no limit we can add N client but you can make it private
@oosam2
@oosam2 5 лет назад
@@Javatechie thank you for replay So it depends on specifications of server If I add more ram and cpu I can handle more clients
@aahadqureshi2183
@aahadqureshi2183 4 года назад
bro reply plzz.................... while adding new dependency it showing error what should i do for it help me im finding error from 3 days
@Javatechie
@Javatechie 4 года назад
Which dependency you are trying to add and what error you are getting ?
@aahadqureshi2183
@aahadqureshi2183 4 года назад
@@Javatechie the dependency which u have added after opening pom
@Javatechie
@Javatechie 4 года назад
Run Maven install once
@aahadqureshi2183
@aahadqureshi2183 4 года назад
Ok let it be if I don't use that dependency will it cause anything last reply....
@aahadqureshi2183
@aahadqureshi2183 4 года назад
@@Javatechiebro...............
@AdityaDahiya99
@AdityaDahiya99 9 месяцев назад
You did not have to configure the port number for the socket?
@TrungNguyen-lm4dy
@TrungNguyen-lm4dy 5 месяцев назад
the springboot auto configure the port number. In my case the port is 8080
@deepalisingh6584
@deepalisingh6584 4 года назад
I am getting error while adding the dependency..can u plz help me..
@Javatechie
@Javatechie 4 года назад
What error you are getting can you update here
@deepalisingh6584
@deepalisingh6584 4 года назад
@@Javatechie 'dependencies.dependency.version' for something is missing
@deepalisingh6584
@deepalisingh6584 4 года назад
@@Javatechie i resolved that error but still i m getting whitelabel page
@shankarlinganwad7294
@shankarlinganwad7294 3 года назад
Getting the message Could not connect to WebSocket server. Please refresh this page to try again!
@MkVlogs135
@MkVlogs135 2 года назад
I'm facing the same issue , could you please tell me the solution
3 года назад
how to private chat?
@dheebanm3207
@dheebanm3207 3 года назад
how to develop private chat pls?
@vsingh1852
@vsingh1852 3 года назад
Sir i done all but it shows only connect......
@Javatechie
@Javatechie 3 года назад
Didn't get your point
@vsingh1852
@vsingh1852 3 года назад
@@Javatechie 7088900911 my no
@vsingh1852
@vsingh1852 3 года назад
Can i get little guide from u
@vsingh1852
@vsingh1852 3 года назад
After developing this application here between server and client link not happening, it show only connect.. Not showing joined
@Javatechie
@Javatechie 3 года назад
Is message triggering to both side
@nandinishukla4108
@nandinishukla4108 Год назад
it's not running on typing local host 8080 pls can someone help me
@sayankarmakar13
@sayankarmakar13 Год назад
same problem do you find any solution?
@boterham6474
@boterham6474 5 лет назад
can i connect to the websocket client with something else as javascript? like php, c# or java itself?
@Javatechie
@Javatechie 5 лет назад
Yes we can connect
@boterham6474
@boterham6474 5 лет назад
how does that work? is there a spring library in those languages? do i still need to call the withSockJS method? @@Javatechie
@styveakono6498
@styveakono6498 4 года назад
please can i customize this application with my own database
@Javatechie
@Javatechie 4 года назад
Hi Styve , could you please tell me your exact requirement , this is just one poc I did , now it's up to you how you will customize it
@styveakono6498
@styveakono6498 4 года назад
​@@Javatechie i want to make the chapp app with spring boot websocket for my formation in the firm to promote a forum and i have already create the database according to the ressources of enterprise .
@adithyashetty2718
@adithyashetty2718 4 года назад
@@Javatechiecan I get the source code for clients side
@mdmimran2490
@mdmimran2490 5 лет назад
can u tell how to create an angular frontend for this websocket.???
@Javatechie
@Javatechie 5 лет назад
As we discussed over the mail I will update here
@stefanauta6374
@stefanauta6374 3 года назад
@@Javatechie is the angular option available now?
@Javatechie
@Javatechie 3 года назад
Yes
@stefanauta6374
@stefanauta6374 3 года назад
@@Javatechie thank you! where can I find it? I've been looking for it but I was not able to
@utsavprabhakar5072
@utsavprabhakar5072 5 лет назад
Where can I find the source code for this?
@Javatechie
@Javatechie 5 лет назад
Please check in video description
@dipakgiri3248
@dipakgiri3248 5 лет назад
how to connect this on Android
@Javatechie
@Javatechie 5 лет назад
I didn't much aware on Android , logic will be same for all
@pradipkangale8505
@pradipkangale8505 2 года назад
Are bro I'm not understanding anything, what u saying
@bathulanagendra4621
@bathulanagendra4621 5 лет назад
Sir ,can we send attachments .
@Javatechie
@Javatechie 5 лет назад
yes we can send an attachment for client side code changes you can follow below link www.esegece.com/websockets/articles/features/225-websocket-upload-files-from-javascript but i will not suggest to use web socket for this scenario
@shankarlinganwad7294
@shankarlinganwad7294 3 года назад
Please help me out its urgent
@user-eq3cv2dm7h
@user-eq3cv2dm7h 6 месяцев назад
pas un vrai match
@darkxxslayer2109
@darkxxslayer2109 2 года назад
very bad explanation
@Javatechie
@Javatechie 2 года назад
Thanks btw what make you feel bad
@denismugane2765
@denismugane2765 3 года назад
incomplete tutorial!
Далее
HOW DID SHE DECIDE TO DO THIS?!
00:27
Просмотров 7 млн
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Просмотров 17 млн
А ВЫ УМЕЕТЕ ПЛАВАТЬ?? #shorts
00:21
Просмотров 880 тыс.
microsoft doubles down on recording your screen
10:00
Spring Tips: @Controllers: WebSockets
12:03
Просмотров 37 тыс.
How Web Sockets work | System Design Interview Basics
5:28
WebSockets using Spring Boot Example | Tech Primers
27:11
HOW DID SHE DECIDE TO DO THIS?!
00:27
Просмотров 7 млн