{"id":23359780,"url":"https://github.com/firehed/websockets-server","last_synced_at":"2025-04-07T20:46:04.041Z","repository":{"id":138435651,"uuid":"820783","full_name":"Firehed/Websockets-Server","owner":"Firehed","description":"PHP-based server for html5 websockets","archived":false,"fork":false,"pushed_at":"2011-10-27T22:27:29.000Z","size":108,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T22:26:59.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Firehed.png","metadata":{"files":{"readme":"README","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":"2010-08-06T05:20:08.000Z","updated_at":"2023-10-10T04:19:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"d40f5df3-4b90-4513-9171-1a95a432d1d8","html_url":"https://github.com/Firehed/Websockets-Server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FWebsockets-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FWebsockets-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FWebsockets-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2FWebsockets-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firehed","download_url":"https://codeload.github.com/Firehed/Websockets-Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247729465,"owners_count":20986392,"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":[],"created_at":"2024-12-21T11:11:57.333Z","updated_at":"2025-04-07T20:46:03.801Z","avatar_url":"https://github.com/Firehed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"The client can connect to the server with javascript like the following:\n\nvar host = \"ws://127.0.0.1:9000\";\ntry {\n\tsocket = new WebSocket(host);\n\tsocket.onopen    = function(msg){ console.log(\"Connected\"); };\n\tsocket.onmessage = function(msg){ console.log(msg.data); };\n\tsocket.onclose   = function(msg){ console.log(\"Disconnected\"); };\n}\ncatch(ex){ console.log(ex); }\n\nUse socket.send('string'); to push data to the server. Look in ./app/Action.php to\nhandle the input the client sends. You could use some sort of auth system on the\nfirst connection to tie a Client to your web app's users. Find something useful that\nyou can do with that knowledge :)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fwebsockets-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirehed%2Fwebsockets-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fwebsockets-server/lists"}