{"id":41832980,"url":"https://github.com/akkuman/websocket","last_synced_at":"2026-01-25T08:43:01.000Z","repository":{"id":57564825,"uuid":"336207624","full_name":"akkuman/websocket","owner":"akkuman","description":"websocket is copy of golang.org/x/net/websocket, can set Host and TlsConfig","archived":false,"fork":false,"pushed_at":"2021-02-06T03:32:12.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T07:59:35.875Z","etag":null,"topics":["golang","golang-package","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/akkuman.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":"2021-02-05T08:18:39.000Z","updated_at":"2021-02-06T03:32:15.000Z","dependencies_parsed_at":"2022-09-18T04:53:03.385Z","dependency_job_id":null,"html_url":"https://github.com/akkuman/websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akkuman/websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Fwebsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Fwebsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Fwebsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Fwebsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akkuman","download_url":"https://codeload.github.com/akkuman/websocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Fwebsocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28749778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T08:31:04.260Z","status":"ssl_error","status_checked_at":"2026-01-25T08:30:28.859Z","response_time":113,"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":["golang","golang-package","websocket"],"created_at":"2026-01-25T08:43:00.425Z","updated_at":"2026-01-25T08:43:00.990Z","avatar_url":"https://github.com/akkuman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# websocket\n\nwebsocket is copy of [golang.org/x/net/websocket](golang.org/x/net/websocket)\n\n\n\n## Feature\n\n1. Set Host Header when websocket handshark\n\nYou can send handshark data to special address with different Host header\n\n2. Set TLS Config\n\nYou can set InsecureSkipVerify to ignore ssl verify error\n\n3. Fully compatible\n\nYou can replace `golang.org/x/net/websocket` package with `github.com/akkuman/websocket`\n\n\n## Example\n\n```golang\n// set host and tls config\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"golang.org/x/net/websocket\"\n)\n\nfunc main() {\n\torigin := \"http://localhost/\"\n\turl := \"ws://localhost:12345/ws\"\n    ws := websocket.NewConfig(url, origin, websocket.WithSourceHost(\"baidu.com\"), websocket.WithTLSConfig(\u0026tls.Config{\n        InsecureSkipVerify: true,\n    }))\n\n    conn, err := websocket.DialConfig(cfg)\n\n    ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkuman%2Fwebsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakkuman%2Fwebsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkuman%2Fwebsocket/lists"}