Files
Shadowbroker/backend/test_ws.py
T
anoracleofra-code 6281085045 Initial commit: ShadowBroker v1.0
Former-commit-id: 3b8912a8f67efd51c08cc6f4c77d43266b8fdc1b
2026-03-04 21:13:34 -07:00

9 lines
260 B
Python

import asyncio, websockets
async def main():
try:
async with websockets.connect('wss://stream.aisstream.io/v0/stream') as ws:
print('Connected to AIS Stream!')
except Exception as e:
print(f"Error: {e}")
asyncio.run(main())