套件:websocketd(0.4.1-1 以及其他的)
Turn any program that uses STDIN/STDOUT into a WebSocket server
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, C, Go, PHP, Java, Clojure, Scala, Groovy, Expect, Awk, VBScript, Haskell, Lua, R, whatever! No networking libraries necessary.
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.
下載 websocketd
硬體架構 | 版本 | 套件大小 | 安裝後大小 | 檔案 |
---|---|---|---|---|
amd64 | 0.4.1-1+b14 | 1,903。3 kB | 5,632。0 kB | [檔案列表] |
arm64 | 0.4.1-1+b14 | 1,644。5 kB | 5,340。0 kB | [檔案列表] |
armel | 0.4.1-1+b14 | 1,627。0 kB | 5,520。0 kB | [檔案列表] |
armhf | 0.4.1-1+b14 | 1,620。9 kB | 5,496。0 kB | [檔案列表] |
i386 | 0.4.1-1+b14 | 1,751。8 kB | 5,524。0 kB | [檔案列表] |
mips64el | 0.4.1-1+b14 | 1,481。8 kB | 6,191。0 kB | [檔案列表] |
ppc64el | 0.4.1-1+b14 | 1,629。2 kB | 5,531。0 kB | [檔案列表] |
riscv64 | 0.4.1-1+b4 | 1,634。3 kB | 5,407。0 kB | [檔案列表] |
s390x | 0.4.1-1+b14 | 1,740。5 kB | 5,928。0 kB | [檔案列表] |