Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Geolocation Hacks > Hack 62. Use the Geoloqi Real-Time Streaming Service to ...

Hack 62. Use the Geoloqi Real-Time Streaming Service to Broadcast a Remote User’s Movement

The combination of the Geolocation API and the Geoloqi Websockets server creates a world of opportunity for innovative hacks. The WebSocket Protocol’s full-duplex, bidirectional transport enables you to provide real-time updates of the remote user’s location on a map.

The WebSocket Protocol creates a single, persistent TCP socket connection between a client and server, allowing for bidirectional, full-duplex messages to be distributed without the overhead of HTTP headers and cookies. In this hack we will use this lightweight protocol to message our user location back to the server.

For more on the WebSocket Protocol refer to Chapter 9, which is dedicated to next-generation connectivity protocols and advancements in HTTP.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint