wscli

command
v0.0.0-...-1018f4b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 10 Imported by: 0

README

The usage of the wscli command is as follows:

wscli [ws://][wss://][username:password@]remote:port

The wscli command supports both ws:// and wss:// protocols. The username and password parameters are optional and can be included if required for authentication.

Example usage:

wscli ws://remote:port
wscli wss://remote:port
wscli username:password@remote:port

Documentation

Overview

Package main provides a simple WebSocket client that connects to a WebSocket server, optionally authenticating using basic authentication if credentials are embedded in the URL. The client supports sending messages from the command line and receiving messages from the server concurrently.

Usage:

go run main.go <WebSocket_URL>

The URL can include username and password for basic authentication, for example:

ws://user:password@localhost:8080/ws

The program also listens for system signals (e.g., SIGINT, SIGTERM) to gracefully shut down the WebSocket connection.

Functions:

Jump to

Keyboard shortcuts

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