wsmsg

package module
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

nats-wsmsg

MIT License GoDoc Go Report Card Releases

nats.io based websocket message pubsub/queue server.

nats-wsmsg embeds nats-server and provides high performance, message (queue) server.

Quick Start

Download latest release version appropriate for operating architecture.
Run.

$ ./nats-wsmsg -p 8080
example Pub/Sub

output1

example Pub/Queue

output2

see more example.

Build

Build requires Go version 1.17+ installed.

$ go version

Run make pkg to Build and package for linux, darwin.

$ git clone https://github.com/octu0/nats-wsmsg
$ make pkg

Help

NAME:
   nats-wsmsg

USAGE:
   nats-wsmsg [global options] command [command options] [arguments...]

VERSION:
   1.4.0

COMMANDS:
     websocket  run websocket server
     help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --log-dir value  /path/to/log directory (default: "/tmp") [$WSMSG_LOG_DIR]
   --debug, -d      debug mode [$WSMSG_DEBUG]
   --verbose, -V    verbose. more message [$WSMSG_VERBOSE]
   --help, -h       show help
   --version, -v    print the version
subcommand: websocket
NAME:
   nats-wsmsg websocket - run websocket server

USAGE:
   nats-wsmsg websocket [command options] [arguments...]

OPTIONS:
   -i value, --ip value        server bind-ip (default: "[0.0.0.0]") [$WSMSG_BIND_IP]
   -p value, --port value      server bind-port (default: "8080") [$WSMSG_BIND_PORT]
   --max-payload value         nats msg max payload size(byte) (default: 1048576) [$WSMSG_MAX_PAYLOAD]
   --http-read-timeout value   http server read timeout(seconds) (default: 10)
   --http-write-timeout value  http server write timeout(seconds) (default: 10)
   --http-idle-timeout value   http server idle timeout(seconds) (default: 15)

Documentation

Index

Constants

View Source
const (
	AppName string = "nats-wsmsg"
	Version string = "1.4.1"
	UA      string = AppName + "/" + Version
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cli
example
queue command
subscribe command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL