Spring Boot Websocket Chat Application Example | Java Techie

  Рет қаралды 105,057

Java Techie

Java Techie

5 жыл бұрын

This video explain you How to build a chat application using Spring Boot and Web Socket
#JavaTechie #SpringBoot #WebSocket
GitHub:
github.com/Java-Techie-jt/Spr...
Blogs:
javagyanmantra.wixsite.com/we...
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

Пікірлер: 153
@user-sb3ds9om4c
@user-sb3ds9om4c 4 жыл бұрын
Thank you very much for the video. Great quality and code
@coderanger75
@coderanger75 4 жыл бұрын
Thank you for this great tutorial!
@chintu_singh91
@chintu_singh91 5 жыл бұрын
Thanks for upload Basant Bhai...
@deveshmishra6611
@deveshmishra6611 5 жыл бұрын
Your content is unique ,keep going .
@sarojsahoo8763
@sarojsahoo8763 5 жыл бұрын
Great Video bro keep it up need some time to digest this...
@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
@rthiaga
@rthiaga 5 жыл бұрын
Awesome content. Keep rocking.
@viveksemwal2537
@viveksemwal2537 3 жыл бұрын
Great video sir very well explained
@theritesh973
@theritesh973 5 жыл бұрын
Nice, Thanks!
@ChandanKumar-ou9fr
@ChandanKumar-ou9fr 2 жыл бұрын
This is really awesome 😍
@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.
@RaviVerma-bg6ul
@RaviVerma-bg6ul 4 жыл бұрын
Gajab. Awesome
@josephmuthui7394
@josephmuthui7394 5 жыл бұрын
nice work ,
@Tobi1200
@Tobi1200 2 жыл бұрын
Thank you very much!
@mdmimran2490
@mdmimran2490 5 жыл бұрын
Nice video!
@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??
@arceliomontezuma3458
@arceliomontezuma3458 2 жыл бұрын
Muchas gracias por la información | Thank you so much for the information
@blasttrash
@blasttrash 5 жыл бұрын
Nice tutorials. You should have more subscribers. :)
@easyappscompany
@easyappscompany 5 жыл бұрын
Nice
@lucasromagnoli9459
@lucasromagnoli9459 4 жыл бұрын
Well done dude, thanks for sharing your knowledge
@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
@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.
@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
@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 :-)
@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?
@hoanle2320
@hoanle2320 4 ай бұрын
thank
@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
@tuannobi
@tuannobi 2 жыл бұрын
I want to create chat application and history can be saved in database. Which keywords for them?
@suraj6110
@suraj6110 4 жыл бұрын
Can u please make a video for person to person chat application
@sujithg5873
@sujithg5873 5 жыл бұрын
Hi, how to send message a particular client?
@snehakavathekarchavan571
@snehakavathekarchavan571 3 жыл бұрын
really good.. is there any video chat application available..?
@Javatechie
@Javatechie 3 жыл бұрын
Yes please checkout websocket example
@karishmarawat1359
@karishmarawat1359 Жыл бұрын
Hi Javatechie, Can you pls upload video on chatbot implementation for ecommerce like zomato,swiggy,flipkart?
@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! 🙂
@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
@teklehaimanotatikilt1435
@teklehaimanotatikilt1435 5 жыл бұрын
can you please make videos spring boot web flow?
@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
@technocrats5789
@technocrats5789 4 жыл бұрын
Is there any example with oauth2 Authorization with sockjs ?
@footballaddict2868
@footballaddict2868 2 жыл бұрын
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 2 жыл бұрын
View should go your ui page
@besooab8810
@besooab8810 4 жыл бұрын
Can you show us how to build video chat like zoom using socket io ?
@shivamvishwakarma4375
@shivamvishwakarma4375 4 жыл бұрын
Hello sir I can't configure spring starter project on my eclipse.. please help
@Javatechie
@Javatechie 4 жыл бұрын
Could you please tell me what error you are facing ?
@paunraja9724
@paunraja9724 4 жыл бұрын
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 4 жыл бұрын
Yes we can why not , so while sending payload itself you can do modification Or else use listener / interceptor
@paunraja9724
@paunraja9724 4 жыл бұрын
@@Javatechie i tried interceptor. But am not able read the data from broker
@Javatechie
@Javatechie 4 жыл бұрын
@@paunraja9724 I will check this out and let you know
@chitrangsharma
@chitrangsharma 2 жыл бұрын
Can't we separate the front-end ? Like running front-end in different port I tried but not getting responses!!
@Javatechie
@Javatechie 2 жыл бұрын
Yes we can
@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
@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 .
@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
@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
@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.
@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 .
@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 🤗
@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?
@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!!
@ivanaguayo3449
@ivanaguayo3449 4 жыл бұрын
Yo, the "Sender left" or "Sender joined" doesn't appear, what could it be?
@Javatechie
@Javatechie 4 жыл бұрын
Need changes in Java script function
@ivanaguayo3449
@ivanaguayo3449 4 жыл бұрын
@@Javatechie Will start looking, thank you for answering!
@AdityaDahiya99
@AdityaDahiya99 8 ай бұрын
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
@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
@hrinternal5051
@hrinternal5051 4 жыл бұрын
dada bhalo job....aapni ki bengali>
@Javatechie
@Javatechie 4 жыл бұрын
No From odisha 🤪
@amitsharma-ri3qk
@amitsharma-ri3qk 3 жыл бұрын
Please help for private chat option.. This example is not useful for real world problem.
@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
@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
@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
@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
@dailycontentguru
@dailycontentguru 4 жыл бұрын
how to send message to a specific user, not to everyone.
@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
@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
@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.
@utsavprabhakar5072
@utsavprabhakar5072 5 жыл бұрын
Where can I find the source code for this?
@Javatechie
@Javatechie 5 жыл бұрын
Please check in video description
@nandinishukla4108
@nandinishukla4108 Жыл бұрын
it's not running on typing local host 8080 pls can someone help me
@sayankarmakar13
@sayankarmakar13 11 ай бұрын
same problem do you find any solution?
@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
@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...............
@dheebanm3207
@dheebanm3207 3 жыл бұрын
how to develop private chat pls?
@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
3 жыл бұрын
how to private chat?
@shankarlinganwad7294
@shankarlinganwad7294 3 жыл бұрын
Please help me out its urgent
@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
@pradipkangale8505
@pradipkangale8505 2 жыл бұрын
Are bro I'm not understanding anything, what u saying
@user-eq3cv2dm7h
@user-eq3cv2dm7h 5 ай бұрын
pas un vrai match
@denismugane2765
@denismugane2765 3 жыл бұрын
incomplete tutorial!
@darkxxslayer2109
@darkxxslayer2109 2 жыл бұрын
very bad explanation
@Javatechie
@Javatechie 2 жыл бұрын
Thanks btw what make you feel bad
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 26 МЛН
WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more
47:33
Spring boot Project setup and Layered Architecture Introduction
23:44
Concept && Coding - by Shrayansh
Рет қаралды 31 М.
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 988 М.
WebSockets using Spring Boot Example | Tech Primers
27:11
Tech Primers
Рет қаралды 87 М.
Build a Real-Time Chat App with Spring Boot and WebSockets
26:00
Java Tech Solutions
Рет қаралды 1,4 М.
Simple TCP Chat Room in Java
39:05
NeuralNine
Рет қаралды 92 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 7 МЛН