Code Monkey home page Code Monkey logo

nats-wsmsg's Introduction

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)

nats-wsmsg's People

Contributors

dependabot[bot] avatar octu0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nats-wsmsg's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.