{"id":16834629,"url":"https://github.com/gobwas/gws","last_synced_at":"2025-10-07T22:04:29.824Z","repository":{"id":141232682,"uuid":"47278337","full_name":"gobwas/gws","owner":"gobwas","description":"Go Web Socket","archived":false,"fork":false,"pushed_at":"2017-04-27T15:53:50.000Z","size":5769,"stargazers_count":31,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T04:34:59.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gobwas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-02T17:56:23.000Z","updated_at":"2021-01-09T11:23:13.000Z","dependencies_parsed_at":"2024-04-19T11:50:11.374Z","dependency_job_id":null,"html_url":"https://github.com/gobwas/gws","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/gobwas%2Fgws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Fgws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Fgws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobwas%2Fgws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gobwas","download_url":"https://codeload.github.com/gobwas/gws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345258,"owners_count":21088231,"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-10-13T12:07:10.414Z","updated_at":"2025-10-07T22:04:24.775Z","avatar_url":"https://github.com/gobwas.png","language":"Go","readme":"# :sparkles: gws\n\n\u003e CLI tool for websocket testing\n\n![Demo](https://cdn.rawgit.com/gobwas/gws/static/demo.gif)\n\n## Install\n\n```shell\ngo get github.com/gobwas/gws\n```\n\n## Usage exmaples\n\nConnect to the websocket server:\n\n```shell\ngws client -url=\"ws://my.cool.address\"\n```\n\nRun simple server and type response messages in terminal:\n\n```shell\ngws server -listen=\":8888\" -response=prompt\n```\n\nOr just simple echo:\n\n```shell\ngws server -listen=\":8888\" -response=echo\n```\n\nRun lua script:\n\n```shell\ngws script -path=./my_cool_script.lua\n```\n\nUsage info:\n\n```shell\nUsage of gws:\ngws client|server|script [options]\noptions:\n  -header string\n        list of headers to be passed during handshake (both in client or server)\n        format:\n                { pair[ \";\" pair...] },\n        pair:\n                { key \":\" value }\n  -listen string\n        address to listen (default \":3000\")\n  -origin string\n        use this glob pattern for server origin checks\n  -path string\n        path to lua script\n  -response value\n        how should server response on message (echo, mirror, prompt, null) (default null)\n  -retry int\n        try to reconnect x times (default 1)\n  -statd duration\n        server statistics dump interval (default 1s)\n  -url string\n        address to connect (default \":3000\")\n  -verbose\n        verbose output\n```\n\n## Scripting\n\ngws brings you ability to implement your tests logic in `.lua` scripts.\nPlease look at `scripts` folder in this repository to find an examples of scripting. \n\n## Why\n\n`gws` is highly inspired by [wsd](https://github.com/alexanderGugel/wsd) and [iocat](https://github.com/moul/iocat). But in both\n tools I found not existing features that I was needed some how.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobwas%2Fgws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgobwas%2Fgws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobwas%2Fgws/lists"}