{"id":19163739,"url":"https://github.com/spandan114/node-socket.io-chat-app","last_synced_at":"2026-04-12T00:03:58.603Z","repository":{"id":43800125,"uuid":"264637439","full_name":"spandan114/node-socket.io-chat-app","owner":"spandan114","description":"Demo :","archived":false,"fork":false,"pushed_at":"2022-12-12T19:36:49.000Z","size":192,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T21:46:48.078Z","etag":null,"topics":["chat-application","express-js","nodejs","realtime-messaging","socket-io"],"latest_commit_sha":null,"homepage":"https://club96.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spandan114.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-17T10:26:40.000Z","updated_at":"2020-09-06T15:03:45.000Z","dependencies_parsed_at":"2023-01-28T00:16:27.144Z","dependency_job_id":null,"html_url":"https://github.com/spandan114/node-socket.io-chat-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2Fnode-socket.io-chat-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2Fnode-socket.io-chat-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2Fnode-socket.io-chat-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spandan114%2Fnode-socket.io-chat-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spandan114","download_url":"https://codeload.github.com/spandan114/node-socket.io-chat-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245887,"owners_count":19771029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat-application","express-js","nodejs","realtime-messaging","socket-io"],"created_at":"2024-11-09T09:16:28.544Z","updated_at":"2026-04-12T00:03:58.569Z","avatar_url":"https://github.com/spandan114.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-socket.io-chat-app\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.icons8.com/cute-clipart/64/000000/chat.png\" width=\"100\" height=\"100\"/\u003e\n\u003c/p\u003e\n\n[![Forks][forks-shield]][forks-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\u003chr\u003e\n\n\u003cimg src=\"./images/Screenshot (83).png\" /\u003e\n\n\u003cimg src=\"./images/Screenshot (84).png\" /\u003e\n\n### How To Use\n+ Clone this repo to your computer\n+ \"npm install\" to install necessary modules \n+ \"npm start\" to start the app \n\n\u003chr\u003e\n\n## Notes :-\n```\n// To connect socket.io server\nconst io = socketio(server);\n\nio.on('connection',socket =\u003e {\n\nsocket.on('connect', () =\u003e {\n  // either with send()\n  socket.send('someone join the chat');\n});\n\n// sending to the client\n  socket.emit('hello', 'can you hear me?', 1, 2, 'abc');\n\n  // sending to all clients except sender\n  socket.broadcast.emit('broadcast', 'hello friends!');\n\n  // sending to all clients in 'game' room except sender\n  socket.to('game').emit('nice game', \"let's play a game\");\n\n  // sending to all clients in 'game1' and/or in 'game2' room, except sender\n  socket.to('game1').to('game2').emit('nice game', \"let's play a game (too)\");\n\n  // sending to all clients in 'game' room, including sender\n  io.in('game').emit('big-announcement', 'the game will start soon');\n\n  // sending to all clients in namespace 'myNamespace', including sender\n  io.of('myNamespace').emit('bigger-announcement', 'the tournament will start soon');\n\n  // sending to a specific room in a specific namespace, including sender\n  io.of('myNamespace').to('room').emit('event', 'message');\n\n  // sending to individual socketid (private message)\n  io.to(socketId).emit('hey', 'I just met you');\n\n// sending with acknowledgement\n  socket.emit('question', 'do you think so?', function (answer) {});\n\n  // sending without compression\n  socket.compress(false).emit('uncompressed', \"that's rough\");\n\n  // sending a message that might be dropped if the client is not ready to receive messages\n  socket.volatile.emit('maybe', 'do you really need it?');\n\n  // specifying whether the data to send has binary data\n  socket.binary(false).emit('what', 'I have no binaries!');\n\n  // sending to all clients on this node (when using multiple nodes)\n  io.local.emit('hi', 'my lovely babies');\n\n  // sending to all connected clients\n  io.emit('an event sent to all connected clients');\n\n})\n\n```\n\u003ch3\u003eContact Me:\u003c/h3\u003e\n\n\u003cdiv\u003e\n    \u003cp\u003e\u003cb\u003ePortfolio:\u003c/b\u003e https://spandan114.github.io/spandanjoshi-portfolio/ \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n    \u003cp\u003e\u003cb\u003eGmail:\u003c/b\u003e spandanj685@gmail.com \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n    \u003cp\u003e\u003cb\u003eGitHub:\u003c/b\u003e https://github.com/spandan114\u003c/p\u003e\n\u003c/div\u003e\n\n\n\n\n\n\n\n\n\n\n\n\n[forks-shield]: https://img.shields.io/github/forks/kaboobear/MEVN-Fitness-App?style=flat-square\n[forks-url]: https://github.com/kaboobear/MEVN-Fitness-App/network/members\n[issues-shield]: https://img.shields.io/github/issues/kaboobear/MEVN-Fitness-App.svg?style=flat-square\n[issues-url]: https://github.com/kaboobear/MEVN-Fitness-App/issues\n[license-shield]: https://img.shields.io/github/license/kaboobear/MEVN-Fitness-App.svg?style=flat-square\n[license-url]: https://github.com/kaboobear/MEVN-Fitness-App/blob/master/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspandan114%2Fnode-socket.io-chat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspandan114%2Fnode-socket.io-chat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspandan114%2Fnode-socket.io-chat-app/lists"}