There are various ways to test the viability of your WebSocket. One of the challenges for developers is to test the robustness of the endpoints to ensure that a busy application can continue to perform under heavy loads. You canlook at how to load test a WebSocket endpoint and how to use simple techniques to test your WebSocket endpoints.
- [Voiceover] Testing the code that you develop…is an important and diverse topic…that really deserves its own course,…however, I think that it is worth taking a bird's eye view…of the tools available in the developer's toolbox.…Testing can be done at the unit level…with or without a framework…and integration testing can be done…in-house or remote by a third party.…So, there are many options available to the developer…to properly test their WebSocket implementations.…Let's start by looking at two ways…to test a WebSocket, using code.…You can create a server and a client using the ClientManager…and server classes from the Tyrus project,…which we saw earlier on in the course.…
You would do this in order to create interactions…with the server to test how the WebSocket endpoints respond.…And you will create a client…and use a server instance to test its response.…The advantage here is that you are not mocking any objects.…You're using the real code, although you must have in mind…that you're not using an application server…
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.