IXWebSocket/ws
2019-04-23 20:51:58 -07:00
..
ixcobra doc cobra 2019-04-21 11:52:38 -07:00
ixcrypto (ws) add subcommands: cobra subscribe, and cobra subscribe to statsd bridge 2019-04-08 21:56:01 -07:00
snake add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
.gitignore ws / log subcommand name 2019-03-18 17:54:06 -07:00
broadcast-server.js cleanup 2019-02-22 20:51:22 -08:00
broadcast-server.py cleanup 2019-02-22 20:51:22 -08:00
CMakeLists.txt add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
cobraMetricsSample.json add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
docker_build.sh ws broacast_server / can set serving hostname 2019-03-10 16:36:44 -07:00
IXRedisClient.cpp add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
IXRedisClient.h add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
IXSentryClient.cpp (doc) Add more doc to SocketServer 2019-04-17 20:36:26 -07:00
IXSentryClient.h (doc) Add more doc to SocketServer 2019-04-17 20:36:26 -07:00
package-lock.json ws / log subcommand name 2019-03-18 17:54:06 -07:00
README.md update doc 2019-03-24 21:48:14 -07:00
test_ws_redis.sh Bump sleep time in test shell script 2019-03-29 09:36:56 -07:00
test_ws.sh fix bug with isReadyToWrite 2019-03-18 22:05:04 -07:00
ws_broadcast_server.cpp Feature/connection state (#25) 2019-03-20 18:34:24 -07:00
ws_chat.cpp fix compiler warnings in ws command line tool 2019-03-04 13:56:30 -08:00
ws_cobra_publish.cpp ws cobra publish stress mode fix 2019-04-23 20:51:58 -07:00
ws_cobra_subscribe.cpp move cobra files to their own subfolder 2019-04-21 11:20:17 -07:00
ws_cobra_to_sentry.cpp move cobra files to their own subfolder 2019-04-21 11:20:17 -07:00
ws_cobra_to_statsd.cpp move cobra files to their own subfolder 2019-04-21 11:20:17 -07:00
ws_connect.cpp select interrupt cleanup 2019-03-14 18:37:38 -07:00
ws_echo_server.cpp Feature/connection state (#25) 2019-03-20 18:34:24 -07:00
ws_http_client.cpp readBytes does not read bytes one by one but in chunks 2019-03-02 21:11:16 -08:00
ws_ping_pong.cpp fix compiler warnings in ws command line tool 2019-03-04 13:56:30 -08:00
ws_receive.cpp ws / log subcommand name 2019-03-18 17:54:06 -07:00
ws_redis_publish.cpp add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
ws_redis_subscribe.cpp (redis_subscribe) in verbose mode, received message gets printed with a 'received: ' header 2019-03-29 09:35:19 -07:00
ws_send.cpp ws / log subcommand name 2019-03-18 17:54:06 -07:00
ws_snake.cpp add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
ws_transfer.cpp Feature/connection state (#25) 2019-03-20 18:34:24 -07:00
ws.cpp add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00
ws.h add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql 2019-04-22 17:33:45 -07:00

General

ws is a command line tool that should exercise most of the IXWebSocket code, and provide example code.

$ ws --help
ws is a websocket tool
Usage: ws [OPTIONS] SUBCOMMAND

Options:
  -h,--help                   Print this help message and exit

Subcommands:
  send                        Send a file
  receive                     Receive a file
  transfer                    Broadcasting server
  connect                     Connect to a remote server
  chat                        Group chat
  echo_server                 Echo server
  broadcast_server            Broadcasting server
  ping                        Ping pong
  curl                        HTTP Client
  redis_publish               Redis publisher
  redis_subscribe             Redis subscriber

file transfer

# Start transfer server, which is just a broadcast server at this point
ws transfer # running on port 8080.

# Start receiver first
ws receive ws://localhost:8080

# Then send a file. File will be received and written to disk by the receiver process
ws send ws://localhost:8080 /file/to/path

curl

$ ws curl --help
HTTP Client
Usage: ws curl [OPTIONS] url

Positionals:
  url TEXT REQUIRED           Connection url

Options:
  -h,--help                   Print this help message and exit
  -d TEXT                     Form data
  -F TEXT                     Form data
  -H TEXT                     Header
  --output TEXT               Output file
  -I                          Send a HEAD request
  -L                          Follow redirects
  --max-redirects INT         Max Redirects
  -v                          Verbose
  -O                          Save output to disk
  --compress                  Enable gzip compression
  --connect-timeout INT       Connection timeout
  --transfer-timeout INT      Transfer timeout