Featured resource
pluralsight tech forecast
2025 Tech Forecast

Which technologies will dominate in 2025? And what skills do you need to keep up?

Check it out
Hamburger Icon
  • Course
    • Libraries: If you want this course, consider one of these libraries.
    • Core Tech

Introduction to the Java API for Web Sockets

The web is becoming more and more about building applications rather than building web pages, and that typically means two-way communication between the web client code and the server. In this course, you will build a Java server that supports the Java API for Web Sockets, and a JavaScript client that uses web sockets to provide two-way communication between the client and the server.

Kevin Jones - Pluralsight course - Introduction to the Java API for Web Sockets
by Kevin Jones

What you'll learn

More and more web applications are using web sockets. In this course, you will learn how to use the Java API for Web Sockets to provide communication between the client and a Java based server. The course will cover sending simple text messages as well as how to send, receive, and process binary messages. We also show how to deserialize such messages into Java types and how to use those Java types to process the message. You'll also learn how to serialize Java objects into messages that can be sent to and processed by a client. Finally, we look at ways to extend the server using 'path=parameter,' which allows clients to use the same web socket but to partition the application using URLs.

Table of contents

About the author

Kevin Jones - Pluralsight course - Introduction to the Java API for Web Sockets
Kevin Jones

Kevin has spent way too many years in the software industry. Starting on PL/1 on IBM mainframes then graduating through dBase IV to Windows and eventually onto Java, .Net and now JavaScript where he finally thinks he has found a home until the next new shiny comes along.

More Courses by Kevin