HTML and CSS Reference
In-Depth Information
'(result pending)'
> 6689629901666194: 10
5206121257506311: 10
Suggested Extensions
The remote JavaScript console is a good starting point for some interesting projects. Here
are a couple ways to extend this example:
Create an HTML5 user interface for the remote control console.
Use a WebSocket to communicate between the user interface
and the controlling server. Consider how using a socket simplifies
sending pipelined commands and receiving delayed responses
compared to a communication strategy like HTTP with AJAX.
Once you've read Chapter 5, modify the remote control server to
use STOMP. You could broadcast commands to every connected
browser session using a topic and receive replies on a queue.
Consider how to mix in new functionality such as a remote
control service to a message driven application.
In this chapter, we explored a brief history of the Internet and protocols and why the
WebSocket Protocol was created. We examined the WebSocket Protocol in detail,
including the wire traffic, the opening and closing handshakes, and the framing
format. We used Node.js to build an example WebSocket server powering a simple
echo demo and a remote control console. While this chapter provides a good
overview of the WebSocket Protocol, you can read the full protocol specification here: .
In the next chapters, we will use higher-level protocols on top of WebSocket to build
feature-rich, real-time applications.
Search WWH ::

Custom Search