websocket-proxy-server

command module
v0.0.0-...-f567649 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 8 Imported by: 0

README

websocket-proxy-server

Run

# build 
$ task install && task build

# run
$ ./ws-proxy -l :8000 -b wss://wss.example.com -f scripts/default.js

Install Task to use task command.

Options
-b, env:BACKEND

Set backend websocket server URL.

-f, env:SCRIPT_FILE

Set script file for middleware.

-l, env:LISTEN

Set listening address. default value is :8000.

Format: <ip address>:<port>

-r, env:RECORD_DIR

Directory to store traffic records in text format.

Run using docker

$ PORT=1234 task run-docker -- -b wss://wss.example.com
  • Set PORT environment variable to override default listening port(8000).
  • Append custom CLI options after --.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
polyfill

Jump to

Keyboard shortcuts

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