{"id":13471922,"url":"https://github.com/FreakDev/PhoneGap-Android-HTML5-WebSocket","last_synced_at":"2025-03-26T15:30:51.834Z","repository":{"id":1153250,"uuid":"1038521","full_name":"FreakDev/PhoneGap-Android-HTML5-WebSocket","owner":"FreakDev","description":"a little java implementation of missing WebSocket form Android webview","archived":false,"fork":false,"pushed_at":"2012-11-05T13:07:50.000Z","size":314,"stargazers_count":79,"open_issues_count":5,"forks_count":31,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-01T16:28:18.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/FreakDev.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":"2010-10-30T23:13:12.000Z","updated_at":"2023-09-08T16:27:47.000Z","dependencies_parsed_at":"2022-08-16T12:20:14.687Z","dependency_job_id":null,"html_url":"https://github.com/FreakDev/PhoneGap-Android-HTML5-WebSocket","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/FreakDev%2FPhoneGap-Android-HTML5-WebSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreakDev%2FPhoneGap-Android-HTML5-WebSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreakDev%2FPhoneGap-Android-HTML5-WebSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreakDev%2FPhoneGap-Android-HTML5-WebSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreakDev","download_url":"https://codeload.github.com/FreakDev/PhoneGap-Android-HTML5-WebSocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222151628,"owners_count":16939423,"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-07-31T16:00:50.393Z","updated_at":"2024-10-30T02:30:58.510Z","avatar_url":"https://github.com/FreakDev.png","language":"Java","readme":"Android HTML5 WebSocket \n=======================\n\nA Java library that make the WebSocket object available for project that uses a WebView (like PhoneGap project's)\n\nThe iOS version of the plugin was already existant (http://github.com/remy/PhoneGap-Plugin-WebSocket) and works well \nfor me, but the Adnroid version was missing. here it is.\n\nUsage\n=====\n\n* copy the Java source into the source folder of your project.\n* copy websocket.js in your assets/www folder\n* copy / paste these two line inside the onCreate of your activity\n```java\n   WebSocketFactory wsFactory = new WebSocketFactory(appView);\n   appView.addJavascriptInterface(wsFactory, \"WebSocketFactory\");\n   ```\n* in your javascript, create a new WebSocket, and overload its method 'onmessage', 'onopen', 'onerror', 'onclick';\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreakDev%2FPhoneGap-Android-HTML5-WebSocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFreakDev%2FPhoneGap-Android-HTML5-WebSocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreakDev%2FPhoneGap-Android-HTML5-WebSocket/lists"}