AIS Message Delivery
AIS messages are delivered in sentences. Each sentence is separated by one "line feed" (LF / "\n") character.
AIS messages that comprise of multiple sentences will stream these adjacent sentences in order.
Handling of Interrupted Connections
If your TCP client gets briefly disabled for any reason, our TCP server uses a cursor to keep track of the last successfully sent AIS message. Once your client reconnects, the cursor indicates the last received message in the stream so no messages get skipped.
If your TCP client is disconnected for an extended period of time (several days, for instance), upon reconnection, it will begin streaming AIS messages that had been published within the past three hours.