Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ariefrahmansyah/wsping
Ping your WebSocket endpoint with ease!
https://github.com/ariefrahmansyah/wsping
Last synced: 22 days ago
JSON representation
Ping your WebSocket endpoint with ease!
- Host: GitHub
- URL: https://github.com/ariefrahmansyah/wsping
- Owner: ariefrahmansyah
- Created: 2018-09-09T17:59:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T18:03:48.000Z (about 6 years ago)
- Last Synced: 2024-06-19T22:36:38.728Z (5 months ago)
- Language: Go
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wsping
## Installation
```bash
go get -u github.com/ariefrahmansyah/wsping
```## Usage
```bash
$ wsping -h
usage: wsping []Ping your WebSocket endpoint with ease!
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-m, --write-message="ping" Message to write to the server.
-i, --ping-duration=1s Period at which to send ping message to the server. Zero value means no ping at all, only dialing the server.
-v, --verbose Make the operation more talkative.Args:
Endpoint target.$ wsping localhost:8080/hi
level=info ts=2018-09-09T18:02:22.059863439Z target=ws://localhost:8080/hi msg="Message received" message=Hi message_type=1
level=info ts=2018-09-09T18:02:23.061861151Z target=ws://localhost:8080/hi msg="Message received" message=Hi message_type=1
level=info ts=2018-09-09T18:02:24.06182165Z target=ws://localhost:8080/hi msg="Message received" message=Hi message_type=1
level=info ts=2018-09-09T18:02:25.061694477Z target=ws://localhost:8080/hi msg="Message received" message=Hi message_type=1
level=info ts=2018-09-09T18:02:26.061771817Z target=ws://localhost:8080/hi msg="Message received" message=Hi message_type=1
```