[GO] I made a client / server CLI tool for WebSocket (like Netcat for WebSocket)

I created a CLI tool called wsnc in Go language as the title suggests. This one can be used as both a WebSocket client and a server. It looks like a WebSocket version of the netcat (nc) command.

I made a Japanese manual in addition to English ↓ https://github.com/tomatod/wsnc/blob/master/README_JP.md

Usability

It looks like this when used simply ↓ wsnc_demo_simple.gif You can also broadcast on the server side ↓ wsnc_demo_broadcast.gif You can add a header to the HTTP request of the upgrade request, specify the Close code when sending the Close message from the client, and so on, so I think it is convenient for verification.

How to get started

If you have a Go development environment, please go to go get ↓

$ go get github.com/tomatod/wsnc
$ wsnc -h
...

For the time being, the executable file is zipped and distributed, so if you don't mind, please do not hesitate to contact us (Mac has not been verified yet ...) ↓ https://github.com/tomatod/wsnc/releases/tag/0.8.0

Similar tools

There seems to be a good tool made by Rust ↓ (Ku, I'm losing in the end, and I'm jealous of the small size of the binary)

Recommended Posts

I made a client / server CLI tool for WebSocket (like Netcat for WebSocket)
I made a useful tool for Digital Ocean
I made a user management tool for Let's Chat
I made a cleaning tool for Google Container Registry
I made a scaffolding tool for the Python web framework Bottle
I made a poker game server chat-holdem using websocket with python
I made a dash docset for Holoviews
I made a conversation partner like Siri
I made a browser automatic stamping tool.
I made a library for actuarial science
I made a CLI tool to convert images in each directory to PDF
I made a tool that makes decompression a little easier with CLI (Python3)
I made a spare2 cheaper algorithm for uWSGI
I made a router config collection tool Config Collecor
I made a downloader for word distributed expression
I made a tool to compile Hy natively
I made a tool to get new articles
I made a peeping prevention product for telework.
〇✕ I made a game
I made a ready-to-use syslog server with Play with Docker
I made a window for Log output with Tkinter
I made a VM that runs OpenCV for Python
[Python] I made a classifier for irises [Machine learning]
I made a repeating text data generation tool "rpttxt"
I made a tool that makes it convenient to set parameters for machine learning models.
Convenient for training newcomers? I wrote a Telnet practice server
[VSCode] I made a user snippet for Python print f-string
I made a tool to create a word cloud from wikipedia
I tried using Tensorboard, a visualization tool for machine learning
I made a resource monitor for Raspberry Pi with a spreadsheet
I made a learning kit for word2vec / doc2vec / GloVe / fastText
I made a face diagnosis AI for a female professional golfer ③
I made a puzzle game (like) with Tkinter in Python
[Titan Craft] I made a tool to summon a giant to Minecraft
I made an Xubuntu server.
I made a python text
Made a command for FizzBuzz
I made a discord bot
Python> I made a test code for my own external file
I made a web server with Raspberry Pi to watch anime
I made a lot of files for RDP connection with Python
I made a development environment for Django 3.0 with Docker, Docker-compose, Poetry
I made a Chatbot using LINE Messaging API and Python (2) ~ Server ~
I made a Python wrapper library for docomo image recognition API.
I made a C ++ learning site
I touched PyAutoIt for a moment
I made a Line-bot using Python!
I made a CUI-based translation script (2)
I made a wikipedia gacha bot
I made a CUI-based translation script
Zura made like a life game
I made a daemon with Python
I made a Docker container to use JUMAN ++, KNP, python (for pyKNP).
I made a tool to automatically browse multiple sites with Selenium (Python)
[Updated Ver1.3.1] I made a data preprocessing library DataLiner for machine learning.
I made a kind of simple image processing tool in Go language.
[Python] I made a utility that can access dict type like a path
I made a tool to convert Jupyter py to ipynb with VS Code
I made a package like Weblio pop-up English-Japanese dictionary with Sublime Text3