<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd" -->

---
title: Building a real-time websocket app using SvelteKit
description: An experience report from Inngest on building a real-time webhook testing tool (typedwebhook.tools) using SvelteKit instead of React. It covers what Svelte is,...
canonical: https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building a real-time websocket app using SvelteKit | daily.dev
og:description: An experience report from Inngest on building a real-time webhook testing tool (typedwebhook.tools) using SvelteKit instead of React. It covers what Svelte is,...
og:url: https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd
og:image: https://api.daily.dev/og/posts/9VYKylkKd.png
og:image:alt: Building a real-time websocket app using SvelteKit
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a real-time websocket app using SvelteKit

**[Inngest Blog](https://daily.dev/sources/inngest)** · 9 min read · 0 upvotes · 0 comments

## Summary

An experience report from Inngest on building a real-time webhook testing tool (typedwebhook.tools) using SvelteKit instead of React. It covers what Svelte is, why the team picked SvelteKit for fast Vite-based builds, built-in SSR, and simple reactive stores, plus a practical example of wiring a websocket connection into a Svelte store in about four lines of code. The piece closes with candid impressions comparing Svelte's developer experience to React's larger but more fragmented ecosystem, concluding Svelte was great for this small project while React still feels safer for larger, more complex apps.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/building-a-realtime-websocket-app-using-sveltekit>

## Questions this post answers

### How do you connect a websocket to a Svelte store so the UI updates in real time?

Create a writable store holding the state, then open a WebSocket connection and call the store's update function inside the message event listener to merge new data into state. Because Svelte stores can be updated from anywhere without needing a component or context, wiring a websocket message handler into a store takes only a few lines of code, with no nested provider setup required.

_See daily.dev for more real-world comparisons when choosing between SvelteKit and React for a project._

### Why would a team choose SvelteKit over React for a small real-time web app?

SvelteKit was chosen for a webhook testing tool because it builds fast in development using Vite with hot module replacement and state persistence out of the box, includes server-side rendering and progressive enhancement with simple pre-rendering configuration, and ships reactive state management via stores that work outside components without top-level context, unlike typical React setups.

_Developers weighing Svelte against React for a project can compare tradeoffs like these on daily.dev._

## Similar posts on daily.dev

- [Svelte 5 vs React 2026: An Honest Comparison](https://daily.dev/posts/svelte-5-vs-react-2026-an-honest-comparison-bsbmfirgl) · Alex CloudStar · 0 upvotes · 0 comments
- [HTML over WebSockets: real-time SPAs with barely any JavaScript](https://daily.dev/posts/html-over-websockets-real-time-spas-with-barely-any-javascript-xef6zsuxl) · Hacker News · 2 upvotes · 0 comments
- [React 19 Compiler vs Svelte 5: Latency Benchmark Results](https://daily.dev/posts/react-19-compiler-vs-svelte-5-latency-benchmark-results-q9enifxta) · SitePoint · 0 upvotes · 0 comments
- [SvelteKit 3 puts heat on Next.js with radical approach to RPCs](https://daily.dev/posts/sveltekit-3-puts-heat-on-next-js-with-radical-approach-to-rpcs-mfzwc6pvz) · DEVCLASS · 7 upvotes · 1 comments

---

Tags: [#react](https://daily.dev/tags/react), [#svelte](https://daily.dev/tags/svelte), [#websocket](https://daily.dev/tags/websocket), [#sveltekit](https://daily.dev/tags/sveltekit)

[View this post on daily.dev](https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building a real-time websocket app using SvelteKit","url":"https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd"},"datePublished":"2026-09-13T19:57:37.930Z","dateModified":"2026-09-13T20:02:21.420Z","description":"An experience report from Inngest on building a real-time webhook testing tool (typedwebhook.tools) using SvelteKit instead of React. It covers what Svelte is,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ca3792e078ffd7590218b7626583d3d3?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ca3792e078ffd7590218b7626583d3d3?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"react,svelte,websocket,sveltekit","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Building a real-time websocket app using SvelteKit"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/building-a-real-time-websocket-app-using-sveltekit-9vykylkkd#faq","mainEntity":[{"@type":"Question","name":"How do you connect a websocket to a Svelte store so the UI updates in real time?","acceptedAnswer":{"@type":"Answer","text":"Create a writable store holding the state, then open a WebSocket connection and call the store's update function inside the message event listener to merge new data into state. Because Svelte stores can be updated from anywhere without needing a component or context, wiring a websocket message handler into a store takes only a few lines of code, with no nested provider setup required. See daily.dev for more real-world comparisons when choosing between SvelteKit and React for a project."}},{"@type":"Question","name":"Why would a team choose SvelteKit over React for a small real-time web app?","acceptedAnswer":{"@type":"Answer","text":"SvelteKit was chosen for a webhook testing tool because it builds fast in development using Vite with hot module replacement and state persistence out of the box, includes server-side rendering and progressive enhancement with simple pre-rendering configuration, and ships reactive state management via stores that work outside components without top-level context, unlike typical React setups. Developers weighing Svelte against React for a project can compare tradeoffs like these on daily.dev."}}]}
```

