{"id":21905385,"url":"https://github.com/hex7c0/mamma","last_synced_at":"2026-04-10T12:02:32.872Z","repository":{"id":25861150,"uuid":"29300998","full_name":"hex7c0/mamma","owner":"hex7c0","description":"offers baby monitors which will provide peace of mind to new mothers for Nodejs","archived":false,"fork":false,"pushed_at":"2024-04-22T23:54:57.000Z","size":112,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T08:55:41.588Z","etag":null,"topics":["monitor","nodejs"],"latest_commit_sha":null,"homepage":"https://github.com/hex7c0/mamma","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hex7c0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-15T14:27:50.000Z","updated_at":"2017-12-30T09:56:15.000Z","dependencies_parsed_at":"2024-04-23T00:46:58.326Z","dependency_job_id":"d608b06f-a190-44c7-9bcc-768a45e8c652","html_url":"https://github.com/hex7c0/mamma","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmamma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmamma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmamma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmamma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex7c0","download_url":"https://codeload.github.com/hex7c0/mamma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918710,"owners_count":20531686,"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":["monitor","nodejs"],"created_at":"2024-11-28T16:33:06.953Z","updated_at":"2025-12-30T23:51:30.172Z","avatar_url":"https://github.com/hex7c0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [mamma](https://github.com/hex7c0/mamma)\n\n[![NPM version](https://img.shields.io/npm/v/mamma.svg)](https://www.npmjs.com/package/mamma)\n[![Linux Status](https://img.shields.io/travis/hex7c0/mamma.svg?label=linux)](https://travis-ci.org/hex7c0/mamma)\n[![Dependency Status](https://img.shields.io/david/hex7c0/mamma.svg)](https://david-dm.org/hex7c0/mamma)\n[![Coveralls](https://img.shields.io/coveralls/hex7c0/mamma.svg)](https://coveralls.io/r/hex7c0/mamma)\n\nOffers baby monitors which will provide peace of mind to the new mother.\nOpen TCP or Unix domain socket and listen child [KA](https://en.wikipedia.org/wiki/Keepalive#TCP_keepalive) keepalive noises.\nAlert (callback) when `close` event happen\n\n## Installation\n\nInstall through NPM\n\n```bash\nnpm install mamma\n```\nor\n```bash\ngit clone git://github.com/hex7c0/mamma.git\n```\n\n## API\n\ninside nodejs project\n```js\nvar server = require('mamma').createServer;\n\nvar client = require('mamma').createClient;\n\nvar bind = require('mamma').createBinding; // bind to existing TCP server\n```\n\n### createServer(listen [, options])\n\n#### listen\n\n - `listen`- **Number | String** Number for `TCP port`, String (path) for `sock` *(default \"required\")*\n\n#### options\n\n - `keepalive` - **Number** Set initialDelay (in milliseconds) to set the delay between the last data packet received and the first keepalive probe *(default \"2000\")*\n - `callback`- **Function** Set callback when `close` event happen (return had_error,id) *(default \"disabled\")*\n - `http` - **Object** Enable http interface *(default \"disabled\")*\n   - `port` - **Number** Set Web port *(default \"3000\")*\n   - `host` - **String** Set Web host *(default \"127.0.0.1\")*\n - `https` - **Object** Enable https interface [extra options](http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener) *(default \"disabled\")*\n   - `port` - **Number** Set Web port *(default \"3000\")*\n   - `host` - **String** Set Web host *(default \"127.0.0.1\")*\n - `host` - **String** If the host is omitted, the server will accept connections directed to any IPv4 address (TCP only) *(default \"omitted\")*\n\n### createClient(connect, id [, options])\n\n#### connect\n\n - `connect`- **Object** [createConnection](http://nodejs.org/api/net.html#net_net_createconnection_options_connectionlistener) *(default \"required\")*\n\n#### id\n\n - `id`- **String** Child id for callback *(default \"required\")*\n\n#### options\n\n - `autoReconnect` - **Boolean** Set autoReconnect flag *(default \"true\")*\n - `maxRetries`- **Number** Set maxRetries for autoReconnect logic (true for unlimited) *(default \"true\")*\n - `delay` - **Number** Set millisecond delay from each try *(default \"2000\")*\n\n### createBinding(connect, id [, options])\n\n#### connect\n\n - `connect`- **Object** [createConnection](http://nodejs.org/api/net.html#net_net_createconnection_options_connectionlistener) *(default \"required\")*\n\n#### id\n\n - `id`- **String** Child id for callback *(default \"required\")*\n\n#### options\n\n - `autoReconnect` - **Boolean** Set autoReconnect flag *(default \"true\")*\n - `maxRetries`- **Number** Set maxRetries for autoReconnect logic (true for unlimited) *(default \"true\")*\n - `delay` - **Number** Set millisecond delay from each try *(default \"2000\")*\n - `keepalive` - **Number** Set initialDelay (in milliseconds) to set the delay between the last data packet received and the first keepalive probe *(default \"2000\")*\n - `callback`- **Function** Set callback `close` event happen (return had_error,id) *(default \"disabled\")*\n\n## Examples\n\nTake a look at my [examples](examples)\n\n### [License GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fmamma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex7c0%2Fmamma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fmamma/lists"}