---
title: "Comment by Parker Bedlan on \"Live-Chat with SvelteKit and SocketIO\" | Hashnode"
description: "Hi Linus, I&#39;ve gone through this tutorial and everything works perfectly when I run the dev server, but as soon as I build it and try to run it, whether on"
url: "https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/628ede8719bda58ac7fb1e58"
---

[Discussion](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221)

Comment [Live-Chat with SvelteKit and SocketIO](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221)

[Parker Bedlan](https://hashnode.com/@parkerbedlan)

[May 26, 2022](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/628ede8719bda58ac7fb1e58)

Hi Linus, I've gone through this tutorial and everything works perfectly when I run the dev server, but as soon as I build it and try to run it, whether on my machine using the "build" and "preview" commands, or by deploying to vercel, the sockets don't work. Do you have a github repo that successfully implements this tutorial in production?

[Linus Benkner](https://hashnode.com/@EinLinuus)

[May 26, 2022](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/628ede8719bda58ac7fb1e58#reply-628f80a99a7f929c55a425e0)

Hi, thank you for your feedback! I actually found an issue when using it in production, so I've added a section on how to make it work in production. [linu.us/live-chat-with-sveltekit-and-socketio](https://linu.us/live-chat-with-sveltekit-and-socketio#heading-make-it-work-in-production)

I hope this helps, I'm sorry that I missed that part.
