Skip to content
Snippets Groups Projects

This project is a demonstration of

  1. using Java to receive AIS messages from a network feed, mapping them to DIS PDU's.
  2. setting up a Websocket server with 2 endpoints to serve the data.
  3. using Javascript to receive and display the AIS/DIS messages through Websocket calls.

The 2 endpoints are distinguished by the URL tails "/ais" and "/ais2dis". The first will stream AIS messages. The second will stream DIS pdus.

Three clients are included:

  1. aisWebSocketClient.html, using the first endpoint and displaying AIS messages textually in the browser.
  2. disAisWebsocketClient.html, which uses the 2nd endpoint and displays the generated DIS messages textually.
  3. googleMaps.html, which uses the 2nd endpoint to plot the ship positions on a world map.