You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
<strongstyle="font-size: 1.5em; text-decoration: underline;">w</strong>eb <strongstyle="font-size: 1.5em;text-decoration: underline;">s</strong>ocket command <strongstyle="font-size: 1.5em;text-decoration: underline;">e</strong>xecution <strongstyle="font-size: 1.5em;text-decoration: underline;">p</strong>rotocol. It can be thought of as SSH without encryption.
5
5
6
6
It's useful in cases where you want to provide a command exec interface into a remote environment. It's implemented
7
-
with WebSocket so it may be used directly by a browser frontend. Its symmetric design satisfies
7
+
with WebSocket so it may be used directly by a browser frontend. Its symmetric design satisfies
8
8
`wsep.Execer` for local and remote execution.
9
9
10
10
## Examples
@@ -54,19 +54,19 @@ go run ./dev/server
54
54
Start a client:
55
55
56
56
```sh
57
-
go run ./dev/client tty bash
58
-
go run ./dev/client notty ls
57
+
go run ./dev/client tty --id 1 -- bash
58
+
go run ./dev/client notty -- ls -la
59
59
```
60
60
61
61
### Local performance cost
62
62
63
63
Local `sh` through a local `wsep` connection
64
64
65
65
```shell script
66
-
$ head -c 100000000 /dev/urandom > /tmp/random; cat /tmp/random | pv |time ./bin/client notty sh -c "cat > /dev/null"
66
+
$ head -c 100000000 /dev/urandom > /tmp/random; cat /tmp/random | pv |time ./bin/client notty -- sh -c "cat > /dev/null"
67
67
68
68
95.4MiB 0:00:00 [ 269MiB/s] [ <=> ]
69
-
./bin/client notty sh -c "cat > /dev/null" 0.32s user 0.31s system 31% cpu 2.019 total
69
+
./bin/client notty -- sh -c "cat > /dev/null" 0.32s user 0.31s system 31% cpu 2.019 total
0 commit comments