{"repo":"joewalnes/websocketd","free":true,"listed":false,"github":"https://github.com/joewalnes/websocketd","clone":"git clone https://github.com/joewalnes/websocketd.git","description":"Turn any program that uses STDIN/STDOUT into a WebSocket server. Like inetd, but for WebSockets.","language":"Go","stars":17469,"topics":["websocket-server","websockets","proxy"],"license":"BSD-2-Clause","category":"networking-infra","readme_excerpt":"websocketd ========== websocketd is a small command-line tool that will wrap an existing command-line interface program, and allow it to be accessed via a WebSocket. WebSocket-capable applications can now be built very easily. As long as you can write an executable program that reads STDIN and writes to STDOUT , you can build a WebSocket server. Do it in Python, Ruby, Perl, Bash, .NET, C, Go, PHP, Java, Clojure, Scala, Groovy, Expect, Awk, VBScript, PowerShell, Haskell, Lua, R, whatever! No networking libraries necessary. -@joewalnes Details ------- Upon startup, websocketd will start a WebSocket server on a specified port, and listen for connections. Upon a connection, it will fork the appropriate process, and disconnect the process when the WebSocket connection closes (and vice-versa). Any message sent from the WebSocket client will be piped to the process's STDIN stream, followed by a \\n newline. Any text printed by the process to STDOUT shall be sent as a WebSocket message whenever a \\n newline is encountered. Download -------- If you're on a Mac, you can install websocketd using Homebrew. Just run brew install websocketd . For other operating systems, or if you don't want to use Homebrew, check out the link below. Download for Linux, OS X and Windows Quickstart ---------- To get started, we'll create a WebSocket endpoint that will accept connections, then send back messages, counting to 10 with 1 second pause between each one, before disconnecting. To show how simple it ","default_branch":null,"files":null,"tree":[],"storefront":"/r/joewalnes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/joewalnes/websocketd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}