# Browser Example | Stream API > Browser JavaScript code example demonstrating how to connect to the real-time SEC filings Stream API using socket.io and websocket. The example displays new filings in your browser in real-time. Source: https://sec-api.io/docs/stream-api/browser-example This guide will walk you through creating a real-time monitor for SEC filings in your web browser utilizing WebSockets and the Stream API. The provided HTML snippet with embedded JavaScript code initiates a connection to our Stream API. It displays new filings' metadata - accession number, CIK/name/ticker of the filer, and URLs to filing documents like exhibits - as they're released. **Steps to Follow:** 1. Copy the provided HTML and JavaScript snippet into a file named `stream-api-client.html`. Ensure you replace `YOUR_API_KEY` on the seventh line with your actual API key. 2. Open `stream-api-client.html` in your browser by double-clicking the file. Upon successful connection, you'll see "✅ Connected to Stream API. Awaiting new filings..." If there are any connection issues, an error message "WebSocket error: ERROR_MESSAGE" will appear. Whenever a new filing is received, an HTML list item (`