{"id":13586931,"url":"https://github.com/sile/wstcp","last_synced_at":"2025-06-19T09:33:35.935Z","repository":{"id":57672425,"uuid":"123949299","full_name":"sile/wstcp","owner":"sile","description":"WebSocket to TCP proxy written in Rust","archived":false,"fork":false,"pushed_at":"2024-04-16T23:51:27.000Z","size":200,"stargazers_count":57,"open_issues_count":4,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-15T07:31:59.616Z","etag":null,"topics":["proxy","rust","websocket"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-03-05T16:46:57.000Z","updated_at":"2025-05-12T09:25:13.000Z","dependencies_parsed_at":"2023-01-29T23:15:50.152Z","dependency_job_id":"e7232a25-6d98-4e35-acaa-f709ce1002ef","html_url":"https://github.com/sile/wstcp","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":"0.017857142857142905","last_synced_commit":"3c062b7d2f1bf53d02b8e994c6bd4464623f3444"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/sile/wstcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fwstcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fwstcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fwstcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fwstcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sile","download_url":"https://codeload.github.com/sile/wstcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fwstcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260724606,"owners_count":23052773,"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":["proxy","rust","websocket"],"created_at":"2024-08-01T15:05:55.028Z","updated_at":"2025-06-19T09:33:30.882Z","avatar_url":"https://github.com/sile.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"wstcp\n=====\n\n[![wstcp](https://img.shields.io/crates/v/wstcp.svg)](https://crates.io/crates/wstcp)\n[![Documentation](https://docs.rs/wstcp/badge.svg)](https://docs.rs/wstcp)\n[![Actions Status](https://github.com/sile/wstcp/workflows/CI/badge.svg)](https://github.com/sile/wstcp/actions)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nWebSocket to TCP proxy written in Rust.\n\nInstall\n--------\n\n### Precompiled binaries\n\nA precompiled binary for Linux environment is available in the [releases] page.\n\n```console\n$ curl -L https://github.com/sile/wstcp/releases/download/0.2.0/wstcp-0.2.0.linux -o wstcp\n$ chmod +x wstcp\n$ ./wstcp -h\nwstcp 0.2.0\nWebSocket to TCP proxy server\n\nUSAGE:\n    wstcp [OPTIONS] \u003cREAL_SERVER_ADDR\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n        --bind-addr \u003cBIND_ADDR\u003e    TCP address to which the WebSocket proxy bind [default: 0.0.0.0:13892]\n        --log-level \u003cLOG_LEVEL\u003e     [default: info]  [possible values: debug, info, warning, error]\n\nARGS:\n    \u003cREAL_SERVER_ADDR\u003e    The TCP address of the real server\n```\n\n### Using Cargo\n\nIf you have already installed [Cargo][cargo], you can install `wstcp` easily in the following command:\n\n```console\n$ cargo install wstcp\n```\n\n[cargo]: https://doc.rust-lang.org/cargo/\n[releases]: https://github.com/sile/wstcp/releases\n\nExamples\n---------\n\nRun `wstcp` in a terminal:\n\n```console\n$ wstcp 127.0.0.1:3000\nApr 22 23:21:20.717 INFO Starts a WebSocket proxy server, server_addr: 127.0.0.1:3000, proxy_addr: 0.0.0.0:13892\n```\n\nRun a TCP server (in this example `nc` is used) in another terminal:\n\n```console\n$ nc -l 127.0.0.1 -p 3000\n```\n\nUse [ws](https://github.com/hashrocket/ws) to launch a WebSocket client:\n\n```console\n$ ws ws://localhost:13892/\n\u003e foo # Enter \"foo\" and press the Enter key\n```\n\nAfter this, the \"foo\" string is displayed on the terminal running `nc`.\n\nReferences\n----------\n\n- [RFC 6455] The WebSocket Protocol\n\n[RFC 6455]: https://tools.ietf.org/html/rfc6455\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Fwstcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsile%2Fwstcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Fwstcp/lists"}