{"id":15290494,"url":"https://github.com/mono-js/mono-io","last_synced_at":"2026-01-05T06:45:20.905Z","repository":{"id":57165591,"uuid":"104873382","full_name":"mono-js/mono-io","owner":"mono-js","description":"Socket.io module for Mono","archived":false,"fork":false,"pushed_at":"2018-08-20T23:15:23.000Z","size":209,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T23:09:31.036Z","etag":null,"topics":["io","mono","mono-module","socket","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mono-js.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":"2017-09-26T10:56:14.000Z","updated_at":"2018-08-20T23:15:24.000Z","dependencies_parsed_at":"2022-09-20T17:02:03.358Z","dependency_job_id":null,"html_url":"https://github.com/mono-js/mono-io","commit_stats":null,"previous_names":["terrajs/mono-io"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono-js%2Fmono-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono-js%2Fmono-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono-js%2Fmono-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono-js%2Fmono-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mono-js","download_url":"https://codeload.github.com/mono-js/mono-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245181779,"owners_count":20573723,"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":["io","mono","mono-module","socket","socket-io"],"created_at":"2024-09-30T16:08:23.272Z","updated_at":"2026-01-05T06:45:20.850Z","avatar_url":"https://github.com/mono-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/904724/31045653-d73c6302-a5e8-11e7-8db6-058077d4a848.png\" width=\"350\" alt=\"Mono\"/\u003e\u003c/h1\u003e\n\n\u003e Socket.io module for [Mono](https://github.com/terrajs/mono)\n\n[![npm version](https://img.shields.io/npm/v/mono-io.svg)](https://www.npmjs.com/package/mono-io)\n[![Travis](https://img.shields.io/travis/terrajs/mono-io/master.svg)](https://travis-ci.org/terrajs/mono-io)\n[![Coverage](https://img.shields.io/codecov/c/github/terrajs/mono-io/master.svg)](https://codecov.io/gh/terrajs/mono-io.js)\n[![license](https://img.shields.io/github/license/terrajs/mono-io.svg)](https://github.com/terrajs/mono-io/blob/master/LICENSE)\n\nMono-io uses [socket.io](https://github.com/socketio/socket.io) and [socketio-jwt](https://github.com/auth0-community/socketio-jwt) to handle sockets with authorization via JWT.\n\n## Installation\n\n```bash\nnpm install --save mono-io\n```\n\nThen, in your configuration file of your Mono application (example: `conf/application.js`):\n\n```js\nmodule.exports = {\n  mono: {\n    modules: ['mono-io']\n  }\n}\n```\n\n## Configuration\n\nmono-io will use the `io` property of your configuration (example: `conf/development.js`):\n\n```js\nmodule.exports = {\n  mono: {\n    io: {\n      // See options here: https://github.com/socketio/socket.io/blob/master/docs/API.md#new-serverhttpserver-options\n    }\n  }\n}\n```\n\n## Usage\n\nIn your modules files, you can access `io` instance:\n\n```js\nconst { io } = require('mono-io')\n\nio.on('connection', function (socket) {\n  console.log(socket)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmono-js%2Fmono-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmono-js%2Fmono-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmono-js%2Fmono-io/lists"}