Beta, authenticated streaming API.
The service does not retain messages for replay. Messages can be lost when there are no connected clients, and during service restarts or client reconnects.
The serverless runtime can close or restart WebSocket connections. During a
graceful service restart, the service closes connections with WebSocket code
1012 and reason Service Restart. Clients must reconnect when a connection
closes and should use exponential backoff with jitter.
Opaque OceanSync API token supplied in the Authorization header during the WebSocket handshake:
Authorization: Bearer <token>
Beta subscribe-only WebSocket stream for tagged AIS AIVDM text frames. Clients do not send subscription commands after connecting.
Receive tagged AIS AIVDM WebSocket text frames.
Each WebSocket text frame contains one tagged raw AIVDM line, or multiple related tagged lines separated by CRLF. Each line starts with a NMEA 0183 tag block containing the message timestamp and station identifier.
Available only on servers:
Opaque OceanSync API token supplied in the Authorization header during the WebSocket handshake:
Authorization: Bearer <token>
Accepts the following message:
One WebSocket text frame with tagged AIS AIVDM line content.
UTF-8 text frame containing one or more tagged raw AIVDM lines. Each
line starts with a tag block such as \c:1720915200,s:123*07\. The
c tag is the rounded source message timestamp. The s tag is the
station identifier. Multi-line frames use CRLF as the line separator.
Tagged single-part AIS class A position report
\c:1720915200,s:12307!AIVDM,1,1,,A,14e`4t002AsoJNdJ4wgRsREl0D01,028
Tagged multipart AIVDM message with CRLF-separated lines
\c:1720915200,s:12307!AIVDM,2,1,7,B,54e4t01l1BqHthN220t<D4pER1<4p@E8hTpN21?E0IA:5Q>0F0hDjQ8888,029\r\n\c:1720915200,s:12307!AIVDM,2,2,7,B,88888888880,225
One WebSocket text frame with tagged AIS AIVDM line content.
UTF-8 text frame containing one or more tagged raw AIVDM lines. Each
line starts with a tag block such as \c:1720915200,s:123*07\. The
c tag is the rounded source message timestamp. The s tag is the
station identifier. Multi-line frames use CRLF as the line separator.