{"id":18821626,"url":"https://github.com/octu0/nats-wsmsg","last_synced_at":"2025-04-14T00:32:42.327Z","repository":{"id":35078662,"uuid":"161948722","full_name":"octu0/nats-wsmsg","owner":"octu0","description":"nats.io based websocket message queue server","archived":false,"fork":false,"pushed_at":"2023-12-19T00:09:06.000Z","size":88,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T10:13:55.891Z","etag":null,"topics":["go","golang","message-queue","nats","nats-messaging","natsio","pubsub","queue","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octu0.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-12-15T22:29:59.000Z","updated_at":"2022-12-19T15:34:56.000Z","dependencies_parsed_at":"2024-06-19T09:58:57.597Z","dependency_job_id":"8c451315-f53e-47ee-b0cf-9b2d67c04dde","html_url":"https://github.com/octu0/nats-wsmsg","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fnats-wsmsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fnats-wsmsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fnats-wsmsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fnats-wsmsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octu0","download_url":"https://codeload.github.com/octu0/nats-wsmsg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223612891,"owners_count":17173631,"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":["go","golang","message-queue","nats","nats-messaging","natsio","pubsub","queue","websocket"],"created_at":"2024-11-08T00:44:55.572Z","updated_at":"2024-11-08T00:44:56.520Z","avatar_url":"https://github.com/octu0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nats-wsmsg\n[![MIT License](https://img.shields.io/github/license/octu0/nats-wsmsg)](https://github.com/octu0/nats-wsmsg/blob/master/LICENSE)\n[![GoDoc](https://godoc.org/github.com/octu0/nats-wsmsg?status.svg)](https://godoc.org/github.com/octu0/nats-wsmsg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/octu0/nats-wsmsg)](https://goreportcard.com/report/github.com/octu0/nats-wsmsg)\n[![Releases](https://img.shields.io/github/v/release/octu0/nats-wsmsg)](https://github.com/octu0/nats-wsmsg/releases)\n\n[nats.io](https://nats.io/) based websocket message pubsub/queue server.\n\nnats-wsmsg embeds [nats-server](https://github.com/nats-io/nats-server) and provides high performance, message (queue) server.\n\n## Quick Start\n\nDownload latest [release](https://github.com/octu0/nats-wsmsg/releases) version appropriate for operating architecture.  \nRun.\n\n```\n$ ./nats-wsmsg -p 8080\n```\n\n### example Pub/Sub\n\n![output1](https://user-images.githubusercontent.com/42143893/50048366-70316a00-010d-11e9-8196-d84c00c0bc82.gif)\n\n### example Pub/Queue\n\n![output2](https://user-images.githubusercontent.com/42143893/50048371-8d663880-010d-11e9-833a-eeb3cbdcf294.gif)\n\nsee more [example](https://github.com/octu0/nats-wsmsg/tree/master/example).\n\n## Build\n\nBuild requires Go version 1.17+ installed.\n\n```\n$ go version\n```\n\nRun `make pkg` to Build and package for linux, darwin.\n\n```\n$ git clone https://github.com/octu0/nats-wsmsg\n$ make pkg\n```\n\n## Help\n\n```\nNAME:\n   nats-wsmsg\n\nUSAGE:\n   nats-wsmsg [global options] command [command options] [arguments...]\n\nVERSION:\n   1.4.0\n\nCOMMANDS:\n     websocket  run websocket server\n     help, h    Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --log-dir value  /path/to/log directory (default: \"/tmp\") [$WSMSG_LOG_DIR]\n   --debug, -d      debug mode [$WSMSG_DEBUG]\n   --verbose, -V    verbose. more message [$WSMSG_VERBOSE]\n   --help, -h       show help\n   --version, -v    print the version\n```\n\n### subcommand: websocket\n\n```\nNAME:\n   nats-wsmsg websocket - run websocket server\n\nUSAGE:\n   nats-wsmsg websocket [command options] [arguments...]\n\nOPTIONS:\n   -i value, --ip value        server bind-ip (default: \"[0.0.0.0]\") [$WSMSG_BIND_IP]\n   -p value, --port value      server bind-port (default: \"8080\") [$WSMSG_BIND_PORT]\n   --max-payload value         nats msg max payload size(byte) (default: 1048576) [$WSMSG_MAX_PAYLOAD]\n   --http-read-timeout value   http server read timeout(seconds) (default: 10)\n   --http-write-timeout value  http server write timeout(seconds) (default: 10)\n   --http-idle-timeout value   http server idle timeout(seconds) (default: 15)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fnats-wsmsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctu0%2Fnats-wsmsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fnats-wsmsg/lists"}