---
title: "Discussion on \"Building Real-Time Chat Functionality with Socket.IO in Node.js\" | Hashnode"
description: "Discussion on \"Building Real-Time Chat Functionality with Socket.IO in Node.js\". Integrate chat feature in apps with instant messaging using Node.js, MongoDB, and Socket.IO for seamless real-time conversations."
url: "https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building Real-Time Chat Functionality with Socket.IO in Node.js](https://arnab2001.hashnode.dev/building-real-time-chat-functionality-with-socketio-in-nodejs?utm_source=hashnode&utm_medium=feed)

Integrate chat feature in apps with instant messaging using Node.js, MongoDB, and Socket.IO for seamless real-time conversations.

Dec 29, 2023 · 12 min read · arnab2001.hashnode.dev  
Read the article

-   [#backend](https://hashnode.com/tag/backend)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#socketio](https://hashnode.com/tag/socketio)
-   [#express](https://hashnode.com/tag/express)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

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

@arnab2001 · India

  
[View profile](https://hashnode.com/@arnab2001)

Full stack web dev , Full time tech enthusiast

Im a developer form India currently studying b.tech in CSE from Academy of Technology. I love to explore various tech domain and love the field of web development and Blockchain. I am also an open source enthusiast with several contributions and a open source projects of mine. I love to write technical blogs to share my learnings

## Responses 1

Markdown supported · ⌘↵ to post

[kuer polin](https://hashnode.com/@polinkuer)

[Jan 11, 2024](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/659f408cd842226d808e72d3)

Wow! Quite informative. [Quick Draw](https://quikdraw.io/)

[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.

[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

[Jonathan bolibenga](https://hashnode.com/@jonatahan2)

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

Merci pour cet article je chercher un moyen de comprendre socket.io là j'ai le le compris

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

[Dec 30, 2023](https://hashnode.com/posts/building-real-time-chat-functionality-with-socketio-in-nodejs/658f261ed4abdc4aad882401/comment/659038208b01e644a2647208#reply-6590395f8b01e644a2648575)

bienvenue, cela signifie beaucoup
