Beta, authenticated streaming API.
The service does not retain messages for replay. Messages can be lost when there are no connected clients, and during restarts, deployments and client reconnects.
Cloud Run limits the lifetime of each WebSocket request. During a graceful
service shutdown, 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.
The first beta channel provides unchanged AIS NMEA text frames. It is a subscribe-only WebSocket stream: clients do not send subscription commands after connecting.
Receive unchanged AIS NMEA lines as WebSocket text frames.
Each WebSocket text frame contains exactly one NMEA line received from the upstream AIS stream. The service adds no receiver metadata or newline.
Available only on servers:
Opaque OceanSync API token supplied in the Authorization header during the WebSocket handshake.
Accepts the following message:
One unchanged AIS NMEA line.
Exact UTF-8 NMEA line without an added newline. Multipart NMEA messages remain separate frames and are not assembled by this API.
Single-part AIS class A position report
!AIVDM,1,1,,A,14e`4t002AsoJNdJ4wgRsREl0D01,0*28
First line of a multipart AIS message
!AIVDM,2,1,7,B,54e4t01l1BqHthN220t<D4pER1<4p@E8hTpN21?E0IA:5Q>0F0hDjQ8888,0*29
One unchanged AIS NMEA line.
Exact UTF-8 NMEA line without an added newline. Multipart NMEA messages remain separate frames and are not assembled by this API.