pouriamolaee / node-internship

1 stars 0 forks source link

Websockets for price updates #6

Open thevahidal opened 2 years ago

thevahidal commented 2 years ago

Now that you're updating prices, it's a good time to implement a websocket endpoint, which sends updated prices to subscribers. e.g. Endpoint: ws://localhost:8000/prices Response: {data: {"btc": 21000, "eth": 1300}, "meta": {"updatedAt": "2022-..."}

thevahidal commented 2 years ago

Well done on websockets!

Here's two bonus features: