You candiscover the life-cycle of a WebSocket connection and look at how it is initialised, maintained and closed. Learn about the client handshake that initiates the connection, the session and what makes the connection secure. WebSocket have four life-cycles stages: open, message, error and close, and at each stage certain actions can be performed.
- [Instructor] WebSocket implementations are deployed…in the presentation layer,…and are initiated by a client request.…The server can never make the first request.…What the server does, is to publish the…endpoint URI that the client can then connect to,…however, once a connection has been made,…the flow of data is bidirectional.…Both the client and the server can decide to…send data to the other.…This contrasts with the traditional request response model…we are familiar with, where the client requests data…from the server and the server complies.…In this model, the server does not actually push…the data to the client,…although there are techniques that have been developed…such as long polling, that simulates this type of exchange.…
So the WebSocket technology opens…a bidirectional conversation over a TCP connection…between a browser and a server.…Every website that connects to the server…provokes the creation of a session at the server end.…On very busy sites, this can be thousands,…or even millions of sessions.…
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.