Skip to content

Commit

Permalink
Merge branch 'master' of github.com:esphen/wsta
Browse files Browse the repository at this point in the history
  • Loading branch information
eliihen committed Jun 3, 2016
2 parents f03ff13 + 146a2af commit 262667a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions wsta.1
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,21 @@ placed into the WebSocket request. Using this method,
.B wsta
can connect to WebSockets behind a login.

.TP
.B -b, --binary
Setting this flag will set
.B wsta
into a binary mode. In this mode,
.B wsta
will read binary data from stdin and send it in 256B frames to the sever. If
larger or smaller frames are required, the
.B WSTA_BINARY_FRAME_SIZE
environment variable can be provided to override this.
.B WSTA_BINARY_FRAME_SIZE
is specified as the max number of Bytes in each frame.
Binary data sent from the server is automatically recognized and printed, there
is no need to specify this flag when binary output is expected.

.TP
.B --follow-redirect
Related to the
Expand Down Expand Up @@ -131,6 +146,21 @@ then exits.
.B -h, --help
Shows a helpful message containing all supported input parameters, then exits.

.SH ENVIRONMENT VARIABLES

.TP
.B WSTA_BINARY_FRAME_SIZE
If used with the
.B --binary
flag,
.B WSTA_BINARY_FRAME_SIZE
will specify the maximum size of each binary frame. This is a number in Bytes.
If
.B --binary
is used, but this variable is not set, then a default of 256 Bytes will be used.
This may be small for persistent streaming data, and a "overrun!!!" message may
show, in which case simply increase the fame size using this variable.

.SH EXAMPLES

.TP
Expand Down
35 changes: 28 additions & 7 deletions wsta.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,30 @@
connect to WebSockets behind a login.


-b, --binary
Setting this flag will set wsta into a binary mode. In this
mode, wsta will read binary data from stdin and send it in 256B
frames to the sever. If larger or smaller frames are required,
the WSTA_BINARY_FRAME_SIZE environment variable can be provided
to override this. WSTA_BINARY_FRAME_SIZE is specified as the
max number of Bytes in each frame. Binary data sent from the
server is automatically recognized and printed, there is no need
to specify this flag when binary output is expected.


--follow-redirect
Related to the --login option above, this request will change
the default behavior. By default --login will not follow HTTP
redirects. But if provided with the --follow-redirect option
Related to the --login option above, this request will change
the default behavior. By default --login will not follow HTTP
redirects. But if provided with the --follow-redirect option
wsta will honour any redirects the server requests.


-v, --verbose
Make wsta more verbose. This option will print varying levels of
output to stdout. It can be provided up to three times in order
to log more verbose output. The first level will mostly just
output to stdout. It can be provided up to three times in order
to log more verbose output. The first level will mostly just
tell you which step wsta is currently executing and provide more
detailed error reports. The two other options are for debugging
detailed error reports. The two other options are for debugging
purposes.


Expand All @@ -102,10 +113,20 @@


-h, --help
Shows a helpful message containing all supported input parame-
Shows a helpful message containing all supported input parame-
ters, then exits.


## ENVIRONMENT VARIABLES
WSTA_BINARY_FRAME_SIZE
If used with the --binary flag, WSTA_BINARY_FRAME_SIZE will
specify the maximum size of each binary frame. This is a number
in Bytes. If --binary is used, but this variable is not set,
then a default of 256 Bytes will be used. This may be small for
persistent streaming data, and a "overrun!!!" message may show,
in which case simply increase the fame size using this variable.


## EXAMPLES
wsta ws://echo.websocket.org ping
Send a ping frame to a server and see the response printed to
Expand Down

0 comments on commit 262667a

Please sign in to comment.