{"id":20416397,"url":"https://github.com/folkloreinc/node-client-manager","last_synced_at":"2026-06-07T00:31:34.084Z","repository":{"id":5791968,"uuid":"7006256","full_name":"folkloreinc/node-client-manager","owner":"folkloreinc","description":"A really simple script to manage clients in node.js","archived":false,"fork":false,"pushed_at":"2012-12-10T05:06:08.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-07T05:50:27.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/folkloreinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-04T20:18:24.000Z","updated_at":"2014-03-10T16:59:28.000Z","dependencies_parsed_at":"2022-09-26T20:20:56.503Z","dependency_job_id":null,"html_url":"https://github.com/folkloreinc/node-client-manager","commit_stats":null,"previous_names":["folkloreatelier/node-client-manager"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/folkloreinc/node-client-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkloreinc%2Fnode-client-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkloreinc%2Fnode-client-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkloreinc%2Fnode-client-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkloreinc%2Fnode-client-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folkloreinc","download_url":"https://codeload.github.com/folkloreinc/node-client-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkloreinc%2Fnode-client-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34005030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T06:19:44.124Z","updated_at":"2026-06-07T00:31:34.058Z","avatar_url":"https://github.com/folkloreinc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Client-manager\n===========\n\nA really simple script to manage clients\n\nInstallation\n---------------\n    npm install client-manager\n\n\nUsage\n---------------\n\n\tvar io = require('socket.io');\n\tvar clientManager = require('client-manager');\n\n\tvar io = require('socket.io').listen(80);\n\n\tvar manager = clientManager();\n\n\tio.sockets.on('connection', function (socket) {\n\t\t\n\t\tmanager.addClient(socket.id,socket);\n\n\t\tsocket.on('disconnect', function () {\n\t\t\tmanager.removeClient(socket.id);\n\t\t});\n\n\t});\n\n\tmanager.on('add',function(client) {\n\t\tconsole.log('A client as been added');\n\t});\n\n\tmanager.on('empty',function(client) {\n\t\tconsole.log('There is no more clients');\n\t});","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolkloreinc%2Fnode-client-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolkloreinc%2Fnode-client-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolkloreinc%2Fnode-client-manager/lists"}