{"id":20879214,"url":"https://github.com/7c/myioframework","last_synced_at":"2026-04-22T11:34:45.530Z","repository":{"id":217364605,"uuid":"743684681","full_name":"7c/MYIOFramework","owner":"7c","description":"Socket.IO Client \u0026 Server Wrapper for authenticated/unauthenticated communication","archived":false,"fork":false,"pushed_at":"2024-09-12T10:58:50.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-29T08:19:28.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/7c.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-15T19:05:38.000Z","updated_at":"2024-09-12T10:58:53.000Z","dependencies_parsed_at":"2024-01-16T01:11:25.658Z","dependency_job_id":"6b0d2e11-14ee-44ab-9378-f02d61576f93","html_url":"https://github.com/7c/MYIOFramework","commit_stats":null,"previous_names":["7c/myioframework"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/7c/MYIOFramework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2FMYIOFramework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2FMYIOFramework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2FMYIOFramework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2FMYIOFramework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7c","download_url":"https://codeload.github.com/7c/MYIOFramework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2FMYIOFramework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32134489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-18T07:15:35.904Z","updated_at":"2026-04-22T11:34:45.515Z","avatar_url":"https://github.com/7c.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## myIOFramework - Typescript generation\n- commonjs version is 0.* (previous commits)\n- typescript version is 1.* (not stable yet)\n\nconsists of server and client which is wrapper around existing socket.io library. It is designed to be used in NodeJs and browser (future plan).. You can refer to [basic.ts example](./examples/basic.ts) to get started.\n```\nnpm i --save https://github.com/7c/myioframework\n```\n\n## MYIOServer Quick Start\n```typescript\nimport { MYIOServer } from '@7c/myioframework';\nimport { Socket } from 'socket.io';\n\nclass CustomMYIOServer extends MYIOServer {\n    async onConnection(that:MYIOServer, client:Socket) {\n        super.onConnection(that, client)\n        client.on(\"privateecho\", (str:string, cb:Function) =\u003e  cb(null, str))\n        client.on(\"publicecho\", (str:string, cb:Function) =\u003e cb(null, str))\n    }\n}\nconst server_config = {\n    // scheme: 'http',\n    // ip:'127.0.0.1',\n    // port: 3000,\n    namespace: '/sec',\n    // output: true,\n\n    // if auth is defined, then all the events will be authenticated expect the ones defined in public array\n    auth: {\n        public: ['publicecho'],\n        bytoken: {\n            \"f831695e-1f42-4ba5-b86a-6c4284f2b34f\": {\n                name: 'administrator 1',\n                permissions: ['privateecho']\n            }\n        }\n    },\n    // if auth is not defined, then all events are public! \n}\n\nconst server_opts = {\n    // path:'/socket.io',\n}\n\nconst server = new CustomMYIOServer(server_config,server_opts)\n\nawait server.launch()\nawait server.stop()\n```\n\n## MYIOClient Quick Start\n```typescript\nimport { MYIOClient,IOClientConfig, IOClientOptions } from '@7c/myioframework';\n\n\nlet client_config : IOClientConfig = {\n    // specify server to connect to \n    // scheme: 'http',\n    // ip:'127.0.0.1',\n    // port: 3000,\n    // namespace: '/sec',\n    // or\n    \n    url:'http://127.0.0.1:3000/sec',\n}\n\nlet client_opts : IOClientOptions = {\n    auth: { token:'f831695e-1f42-4ba5-b86a-6c4284f2b34f' },\n    // path:'/socket.io', \n}\n\nlet client1 = new MYIOClient(client_config,client_opts)\nawait client1.connect(2)\nawait client1.whoami(2)\nawait client1.emit('publicecho', {data:'hello'})\nawait client1.emit('privateecho', {data:'hello'})\nawait client1.emitTimeout(5,'publicecho', {data:'hello'})\nclient1.disconnect()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fmyioframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7c%2Fmyioframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fmyioframework/lists"}