SSE, WebSockets, or Polling? Build a Real-Time Stock App with React and Hono

This page summarizes the projects mentioned and recommended in the original post on dev.to

AppSignal - Monitoring that respects your time & budget
APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.
www.appsignal.com
sponsored
Kargo - Stop Scripting Promotions. Start Shipping with Kargo
Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.
akuity.io
sponsored
  1. middleware

    monorepo for Hono third-party middleware/helpers/wrappers (by honojs)

    For the server I used @hono/node-ws and NodeJS's built in EventEmitter to update my endpoint when the data changed. For the client I created my own custom hook, which used the Singleton design pattern to manage open WebSocket connections to different urls and avoid duplication. I also added an optional valueParser function that will parse the value from a string to an object.

  2. AppSignal

    Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.

    AppSignal logo
  3. Socket.io

    Bidirectional and low-latency communication for every platform

    Complexity: WebSockets require you to handle connection lifecycle events, such as errors and reconnections. While the code example I provided could suffice for simple use cases, more complex use cases might arise, like automatic reconnection and queueing messages sent by the client when the connection wasn't open. For that, you can either extend this code or use an external library like react-use-websocket for a relatively lightweight react implementation or socketio for both client and server SDKs.

  4. stock-market-feed

    A quick demo of real-time updating techniques in React and Hono

    You can find the complete code for the project built in this article in this GitHub repository and a live demo in this URL. Happy coding!

  5. hono

    Web framework built on Web Standards

    Today we'll try to answer these questions by looking at some methods to stream real-time data and build our own small real-time stock market feed app in Hono and React to illustrate the differences between these methods. For the visual side of things we'll be using shadcn charts to display randomly generated data.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • HonoJS: Small, simple, and ultrafast web framework for the Edges

    9 projects | news.ycombinator.com | 15 Apr 2024
  • Bun, Hono, Vite, TailwindCSS: An amazing combination has just been revealed!

    7 projects | dev.to | 10 Sep 2023
  • Java on Cloudflare Workers

    3 projects | dev.to | 31 Aug 2026
  • I Just Wanted a WhatsApp Channel That Teaches Me One German Word a Day. It Took a Week and a Git History Rewrite.

    2 projects | dev.to | 15 Aug 2026
  • These tools provide the engineering substrate required to meet the rigorous safety and economic constraints of production environments.

    7 projects | dev.to | 28 Jun 2026

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?