Spring Boot 3 - WebSockets Intro and test with Postman.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
after a long vacation break today we start a new series around spring boot 3. in this new video we start with an intro about websockets in Spring boot we start the series with a simple spring boot websocket server and we'll test it with Postman we start as usual in Eclipse with a new spring boot project with the following dependencies spring boot starter version 3.1.3 Java version 17. spring boot starter websocket and lombok the first class is the default main class the websocket config class with the configuration and the enable websocket annotations here we implement the websocket configure interface an override register websocket handlers where we configure the websocket endpoint and the websocket Handler being the last class is the tutorial Handler here we implements the websocket Handler interface and override after connection established handle message handle transport error after connection closed and finally supports partial messages there is one method here that is important handle message here we receive a message from the tutorial endpoint modify it and send it back twice with a pause of one second we can now start the project and test it with Postman after starting the project in Eclipse we can test it in Postman first we connect to localhost 8080 and the endpoint tutorial we configured in the code we now click connect and see the response from the websocket server now we can send a message and see what the response is we get the two expected responses with a pause between them of one second this was it for part one tomorrow we will continue with the second part of spring boot websockets we will then continue with sock JS and stomp don't forget to like the video and subscribe to our Channel thanks for following our Channel
Info
Channel: Spring Boot TUTORIAL.
Views: 4,296
Rating: undefined out of 5
Keywords: Spring, Spring Boot, Bean, Github, Ecloipse, Spring Boot 3.1.3, WebSocket, Sock.Js, Stomp
Id: Smkbp5gsOiU
Channel Id: undefined
Length: 2min 51sec (171 seconds)
Published: Mon Aug 28 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.