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.
Course info
Rating
(82)
Level
Intermediate
Updated
Jun 5, 2020
Duration
1h 53m
Table of contents
Description
Course info
Rating
(82)
Level
Intermediate
Updated
Jun 5, 2020
Duration
1h 53m
Description

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.

About the author
About the author

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 from the author
Architecting Web Applications with Spring
Intermediate
1h 58m
Jun 2, 2020
More courses by Kevin Jones
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] Hi, everyone. My name is Kevin Jones. Welcome to my course job. A P I for Web sockets. I'm a developer and owner of Rock Solid Knowledge Software Development Company based in the United Kingdom. If you want to establish duplex communication between a server browser, then Web socket is the standard way to do that. J Sa 356 provides a standard mechanism on a P I to do that in Java code on this course shows that provide an implantation using that a p Some of the major topics that we will cover include sending and receiving text and finally messages making use of partial messages. Toe handle large data blocks encoding and decoding data to make use of standard four months, such as Jason on XML and using path parameters to send extra data from the browser to the server. By the end of this course, you'll understand how to write client and server code that uses the job a p I for Web sockets. Before beginning the course, you should be familiar with the Java language. I hope you'll join me on this journey to understand Web sockets for the job. A P I for Web socket course