{"id":47636000,"url":"https://github.com/wpsignal/wordsocket","last_synced_at":"2026-05-06T06:01:52.771Z","repository":{"id":345189059,"uuid":"1158811348","full_name":"wpsignal/wordsocket","owner":"wpsignal","description":"Sends realtime events from WordPress to browsers via api.wpsignal.io. Connects via WebSocket (SSE fallback) and exposes a public JS API for other plugins to share the connection. Also provider a WebSocket based provider for WordPress's Realtime Collaboration.","archived":false,"fork":false,"pushed_at":"2026-05-02T03:43:47.000Z","size":5339,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-02T05:17:11.514Z","etag":null,"topics":["io","php","php8","realtime","sse","sse-client","typescript","websocket","websockets","wordpress-plugin","yjs","yjs-provider"],"latest_commit_sha":null,"homepage":"https://wpsignal.io","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/wpsignal.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T00:02:06.000Z","updated_at":"2026-05-02T03:43:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wpsignal/wordsocket","commit_stats":null,"previous_names":["wpsignal/wordsocket"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/wpsignal/wordsocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsignal%2Fwordsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsignal%2Fwordsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsignal%2Fwordsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsignal%2Fwordsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpsignal","download_url":"https://codeload.github.com/wpsignal/wordsocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpsignal%2Fwordsocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32680890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["io","php","php8","realtime","sse","sse-client","typescript","websocket","websockets","wordpress-plugin","yjs","yjs-provider"],"created_at":"2026-04-02T00:05:56.467Z","updated_at":"2026-05-06T06:01:52.763Z","avatar_url":"https://github.com/wpsignal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordSocket\n\nThe official WordPress plugin for [WPSignal](https://wpsignal.io). WordSocket enables developers to connect their site to a secure WebSocket relay.\n\n## Install:\n\n### WP.org:\n\nThe easiest way is to download is \u003ca href=\"https://wordpress.org/plugins/wordsocket\" target=\"_blank\"\u003ewordpress.org/plugins/wordsocket\u003c/a\u003e.\n\n### WP CLI:\n\n```bash\nwp plugin install wordsocket --activate\n```\n\n## Minimal example:\n\n### Create a trigger:\n\n```php\n// Fire on any WordPress action hook\nWPS::trigger( 'comment.posted' )\n    -\u003eon( 'wp_insert_comment', 10, 2 )\n    -\u003echannel( 'events' )\n    -\u003edata( fn( $id, $comment ) =\u003e [ 'author' =\u003e $comment-\u003ecomment_author ] )\n    -\u003eregister();\n```\n\n### Listen and act on trigger when it fires:\n\n```ts\ntype Comment = {\n  // ...\n};\n// Handle it in the browser\ndocument.addEventListener( 'wpsignal:comment.posted', (e: CustomEvent\u003cComment\u003e) =\u003e {\n    console.log(e.detail);\n});\n```\n\n## Documentation\n\nFull documentation, API reference, and guides are at \u003ca href=\"https://wpsignal.io/docs/getting-started\" target=\"_blank\"\u003ewpsignal.io/docs/getting-started\u003c/a\u003e.\n\n## Changelog\n\n**0.15.1** - Fixed: skip Yjs update and awareness messages when no peers are connected.\n\nFull changelog can be viewed in [CHANGELOG.md](https://github.com/wpsignal/wordsocket/blob/main/CHANGELOG.md)\n\n## License\n\nGPL-2.0-or-later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpsignal%2Fwordsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpsignal%2Fwordsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpsignal%2Fwordsocket/lists"}