Introduction to the Java API for WebSockets

Pluralsight
Course Summary
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 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.
-
+
Course Syllabus
Introduction- 11m 51s
—Course Introduction 3m 7s
—Running the Demonstration Code 1m 48s
—A Brief Overview of the JavaScript Code 3m 37s
—A Brief Overview of the Java Code 2m 47s
—What to Expect in the Rest of the Course 0m 30sBuilding Our First Server- 23m 37s
—Introduction to Writing a Server 1m 23s
—Writing a Programmatic Server 4m 1s
—Writing the WebSocket Descriptor 4m 28s
—Moving to an Annotated WebSocket Server 9m 18s
—Writing the Client 3m 31s
—Summary and What's Next 0m 53sSending and Receiving Messages- 35m 19sEncoding and Decoding Data- 31m 41sExtending the Server- 19m 33s