---
title: "Comment by Olalekan Oladimeji Segun on \"Building Real-Time Chat Functionality with Socket.IO in Node.js\" | Hashnode"
description: "Hello Arnab. You have got such a wonderful article written here but the issue is Socket.io works 100% fine in development but doesn&#39;t work at all in product"
url: "https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/6591b639bb9e53e89c95661a"
---

[Discussion](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401)

Comment [Building Real-Time Chat Functionality with Socket.IO in Node.js](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401)

[Olalekan Oladimeji Segun](https://hashnode.com/@theCuriousCoder)

[Dec 31, 2023](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/6591b639bb9e53e89c95661a)

Hello Arnab. You have got such a wonderful article written here but the issue is Socket.io works 100% fine in development but doesn't work at all in production.

[Arnab Chatterjee](https://hashnode.com/@arnab2001)

[Dec 31, 2023](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/6591b639bb9e53e89c95661a#reply-6591c6febb9e53e89c95f55f)

Thanks a lot for your valuable feedback. I implemented socket.io as this is a personal project. can you please shed some light on how it's done in production? It would be really great if you could suggest some resources for better understanding.

[Olalekan Oladimeji Segun](https://hashnode.com/@theCuriousCoder)

[Dec 31, 2023](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/6591b639bb9e53e89c95661a#reply-6591d3c9bb9e53e89c967d45)

I actually have been battling it for days now- 2 days now and I can't seem to get it to work in production but it was working in development. I have had to want to switch to Server Side Events to be able to simulate a request-response

[Tushar Barate](https://hashnode.com/@tushar86)

[Jan 3, 2024](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/6591b639bb9e53e89c95661a#reply-6595299e3cec7405d5369ef9)

[Olalekan Oladimeji Segun](https://hashnode.com/@theCuriousCoder)Try using Wintercg socket api [blog.cloudflare.com/socket-api-works-javascript-r…](https://blog.cloudflare.com/socket-api-works-javascript-runtimes-wintercg-polyfill-connect/)

[CipherSeeker](https://hashnode.com/@CipherSeeker)

[Jan 5, 2024](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/6591b639bb9e53e89c95661a#reply-65986aee236889da2dad230b)

THx
