pub-ws
The pub-<MsgEnv> for a WebSocket ME. Unlike the other tools it is not tied to an operating system: it is Node.js, bundled and packaged into a single executable.
Repository |
|
|---|---|
Libraries |
USAGE: pub-ws <string>
There is no <0|1> argument. pub-ws always keeps listening, until stopped with ^C.
What it does
-
Opens a reconnecting WebSocket to
ws://localhost:8023. -
On open, sends
<string>and printspub-ws: pub → ws — […]. -
Prints every message received as
pub-ws: pub ← ws — […]. -
Never closes the socket. If the server goes away, it reconnects and sends again on the next open.
Whether the tool hears its own string back depends on the server: a reflector that echoes to all clients, including the sender, will return it.