Join Alex Theedom for an in-depth discussion in this video ✓ Challenge: Ping/pong endpoint, part of WebSocket Programming with Java EE.
(whooshing)…- [Instructor] Your challenge is to code…a simple ping/pong client and server.…This challenge can be broken down into two parts.…The first part is for the client to send…a pong message to a WebSocket endpoint,…and for the server to print a logout…confirming the pong message has been received.…Second part is for the client to send a ping message…to the WebSocket endpoint, and for the client endpoint…to receive the corresponding pong message from the server.…It should print a message to the console…that confirms its receipt.…
And to simplify the task, I suggest that you create…a server and a client using the Tyrus Project.…A sticking point for the second part…is that you must realize that the server…does not have a method for handling a ping message.…It will automatically respond with a pong message.…This challenge should not take any longer than 30 minutes.…
Join Alex Theedom as he guides you through the lifecycle of a WebSocket connection, and discusses the Java EE WebSocket programming methodologies: annotation and programmatic. He shows how to secure and encrypt WebSocket endpoints and use simple techniques to test their implementation. In addition, he explains how to integrate the JSON-processing API and build a front-end and server based WebSocket client.
- WebSocket usage
- WebSocket lifecycle and topology
- WebSocket front end and back end
- WebSocket methodologies
- Annotation methodology and programmatic methodology
- Coding a client API
- Using the JSON Processing API
- Coding the encoder and decoder
- Building the front end
- Testing WebSocket endpoints
Skill Level Intermediate
Java Platforms Compared: SE vs EE vs MEwith Peggy Fisher25m 38s Intermediate
1. Introduction to WebSocket
2. WebSockets Front End and Back End
3. Project Application and Structure
4. Java EE WebSocket API
5. Messages and Encoding
6. Build Web Front End
7. WebSocket Security
8. Testing WebSocket Endpoints
Next steps1m 37s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.