Skip to content

Instantly share code, notes, and snippets.

View http91's full-sized avatar
💭
I may be slow to respond.

T http91

💭
I may be slow to respond.
View GitHub Profile
import WebSocket from 'ws'
const APIKEY = 'myapiKeyIsHere'
// Connection Type:
const ws = new WebSocket('wss://delayed.polygon.io/stocks') // stocks 15-min delay
// Connection Opened:
ws.on('open', () => {
console.log('Connected!')