{"id":17794469,"url":"https://github.com/kjunichi/wsproxy","last_synced_at":"2026-03-01T09:35:09.373Z","repository":{"id":5309041,"uuid":"6490792","full_name":"kjunichi/wsproxy","owner":"kjunichi","description":"Using WebSocket for iPad and iPhone4S","archived":false,"fork":false,"pushed_at":"2013-07-21T08:35:37.000Z","size":4003,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-13T20:06:29.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Janelia-Farm-Xfam/Consensus-Colors","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kjunichi.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":"2012-11-01T14:15:59.000Z","updated_at":"2018-07-22T17:21:35.000Z","dependencies_parsed_at":"2022-09-14T21:21:50.488Z","dependency_job_id":null,"html_url":"https://github.com/kjunichi/wsproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kjunichi/wsproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fwsproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fwsproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fwsproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fwsproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjunichi","download_url":"https://codeload.github.com/kjunichi/wsproxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fwsproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T09:33:09.965Z","status":"ssl_error","status_checked_at":"2026-03-01T09:25:48.915Z","response_time":124,"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":[],"created_at":"2024-10-27T11:16:33.747Z","updated_at":"2026-03-01T09:35:09.352Z","avatar_url":"https://github.com/kjunichi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wsproxy\n----\nhttp://kjunichi.cocolog-nifty.com/misc/2012/04/ipad-wifiiphone.html\n\niPad Wifi版とiPhone4Sアドホック接続し、iPhone4Sの３G回線を経由してネットにアクセスできるようにします。\n\nnode.jsを周回遅れで始めた際に、勉強がてら実装を始めてみたわけで。\n\n#システム構成\n## イメージ\n![構成イメージ](http://kjunichi.cocolog-nifty.com/misc/images/2012/05/11/img_0110jpg_2.jpg)\n\n## LAN側\niPad \u003c-(http)- \u003e PC1[node.js] \u003c-(websocket)-\u003e iPhone4S \u003c-(websocket)-\u003e 3G回線\n\n## WAN側\n3G回線\u003c-(websocket)\u003ePC2[node.js]\u003c-(http)-\u003ePC2'\u003c-(http)-\u003eインターネット\n\n※PC2,PC2'は同一マシンでも可\n\n# 主要ファイルの説明\n## index.html\niPhone4Sにnode.jsサーバ経由で読み込ませるhtml\n\n## myproxy4.js\nLAN側（iPhone4Sと一緒に持ち歩くnode.jsを動かせる端末）で動かす\n\niPhone4SからのWebSocketを待受けつつ、HTTP Proxyサーバーとして振る舞い、\nリクエストをWebSocket経由でiPhone4Sに転送、またiPhone4SからのWebSocketの\n応答をHTTPに変換してHTTPクライアントに返す。\n\n## lanstart.rb\niPhone4Sにnode.jsサーバ経由で読み込ませるhtmlの生成を行う。\n\n現在はOSXでのみ動かせる。\n\nMacのIPアドレスを取得してindex.htmlのLAN側のアドレス欄を編集する。\n\n\n## ws2http2.js\nWAN側で動かすWebSocketを受信してHTTPに変換してWAN側のHTTP Proxyに\n転送する。WAN側のHTTP Proxyの応答をWebSocketに変換して要求元のLAN側の\niPhone4Sに返す\n\n## myproxy0.js\nWAN側で動かすHTTP Proxy。Squidとかのほうが良いと思う。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjunichi%2Fwsproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjunichi%2Fwsproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjunichi%2Fwsproxy/lists"}