{"id":19774359,"url":"https://github.com/vinks/kohana-realplexor","last_synced_at":"2026-03-05T13:03:36.543Z","repository":{"id":1629352,"uuid":"2347955","full_name":"vinks/kohana-realplexor","owner":"vinks","description":"Kohana API for DmitryKoterov [Dklab Realplexor]: Comet server which handles 1000000+ parallel browser connections.","archived":false,"fork":false,"pushed_at":"2011-09-08T12:05:46.000Z","size":95,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T11:51:51.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/vinks.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":"2011-09-08T11:33:32.000Z","updated_at":"2016-11-12T10:02:13.000Z","dependencies_parsed_at":"2022-09-09T02:03:23.627Z","dependency_job_id":null,"html_url":"https://github.com/vinks/kohana-realplexor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vinks/kohana-realplexor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinks%2Fkohana-realplexor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinks%2Fkohana-realplexor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinks%2Fkohana-realplexor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinks%2Fkohana-realplexor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinks","download_url":"https://codeload.github.com/vinks/kohana-realplexor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinks%2Fkohana-realplexor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285954298,"owners_count":27260129,"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","status":"online","status_checked_at":"2025-11-23T02:00:06.149Z","response_time":135,"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-12T05:12:45.032Z","updated_at":"2025-11-23T13:04:28.817Z","avatar_url":"https://github.com/vinks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is it?\nThe Kohana 3.2 api library for [Dklab Realplexor](https://github.com/DmitryKoterov/dklab_realplexor): Comet server by Dmitry Koterov, dkLab (C) which handles 1000000+ parallel browser connections.\n\n## Configuration\n 1. Install [Dklab Realplexor](https://github.com/DmitryKoterov/dklab_realplexor)\n 1. Plug-in kohana-realplexor module in bootstrap.php\n 2. Tune *config/realplexor.php* default connection profile for your needs\n 3. *Realplexor::instance()* returns realplexor api object with default profile. Certainly you can use an arbitrary profile name 'some-profile-name', that case use *Realplexor::instance('some-profile-name')*\n\n## Usage\n\t$rpl = Realplexor::instance();\n\n\t// Send data to one channel.\n\t$rpl-\u003esend(\"Alpha\", array(\"here\" =\u003e \"is\", \"any\" =\u003e array(\"structured\", \"data\")));\n\n\t// Send data to multiple channels at once.\n\t$rpl-\u003esend(array(\"Alpha\", \"Beta\"), \"any data\");\n\n\t// Send data limiting receivers.\n\t$rpl-\u003esend(\"Alpha\", \"any data\", array($id1, $id2, ...));\n\n\t// Send data with manual cursor specification (10 and 20).\n\t$rpl-\u003esend(array(\"Alpha\" =\u003e 10, \"Beta\" =\u003e 20), \"any data\");\n\n\t// Get the list of all listened channels.\n\t$list = $rpl-\u003eonline();\n\n\t// Get the list of online channels which names are started with \"id_\" only.\n\t$list = $rpl-\u003eonline(array(\"id_\"));\n\n\t// Watching status changes for channels 'id_***' from $pos\"\n\t$pos = 0;\n\twhile (1) {\n    \t\tforeach ($rpl-\u003ewatch($pos, \"id_\") as $event) {\n        \t\techo \"Received: {$event['event']} - {$event['id']}\\n\";\n        \t\t$pos = $event['pos'];\n    \t\t}\n    \t\tusleep(300000);\n\t}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinks%2Fkohana-realplexor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinks%2Fkohana-realplexor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinks%2Fkohana-realplexor/lists"}