TweetStream

Node.js Twitter WebSocket Client

Build a Node.js client for TweetStream's Twitter/X WebSocket API with API-key subprotocol auth and production reconnect handling.

Start 3-day trial

3 days · 5 accounts · 1 WebSocket · Card trial or $5 stablecoin deposit · Minimum is $199/mo after trial

View docs

Direct answer

A Node.js TweetStream client opens a WebSocket with API-key subprotocol auth, parses JSON envelopes, and reconnects safely.

Connection details

Keep the API key in environment variables and connect from a server process.

  • wss://ws.tweetstream.io/ws
  • tweetstream.v1
  • tweetstream.auth.token.<API_KEY>

Reconnect strategy

Production clients should treat reconnects as normal. Keep event handling idempotent and make sure duplicate messages do not trigger duplicate trades or alerts.

Run this workflow with TweetStream

Raw APIs, polling, and custom scraping can also power this workflow. TweetStream puts fast delivery, delete and pin alerts, profile and follow signals, token and OCR enrichment, and WebSocket events in one feed. Start the 3-day trial and route your first high-signal accounts into your alerting or trading flow.

Start 3-day trial

Questions

Put the live feed to work

Start with the X accounts that matter, then route events to your bots, alerts, and trading workflows.