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
`rh` is a CLI tool for creating an ephemeral endpoint for testing and inspecting requests from your application or webhook.
7
+
`rh` is a CLI tool for creating an ephemeral endpoint for testing and inspecting HTTP requests, WebSocket connections, and WebSocket messages from your application or webhook.
8
8
9
9
<imgwidth="1136"alt="Request Hole CLI web ui"src="https://user-images.githubusercontent.com/100900/125158715-9b866500-e10e-11eb-9438-36d0f8325c60.png">
10
10
@@ -41,6 +41,7 @@ Available Commands:
41
41
help Help about any command
42
42
http Creates an http endpoint
43
43
version Print version number of Request Hole
44
+
ws Creates a websocket endpoint
44
45
45
46
Flags:
46
47
-a, --address string sets the address for the endpoint (default "localhost")
@@ -64,6 +65,14 @@ This option will open a web UI that will display the incoming requests. Incoming
64
65
65
66
<imgwidth="1136"alt="Request Hole CLI web ui"src="https://user-images.githubusercontent.com/100900/125158715-9b866500-e10e-11eb-9438-36d0f8325c60.png">
66
67
68
+
### Create a WebSocket endpoint
69
+
```
70
+
$ rh ws --web
71
+
```
72
+
This option will open a web UI that will display the WebSocket connections and incoming messages. Connections and incoming messages will render live in the browser when they are received.
73
+
74
+
<imgwidth="1375"alt="Screen Shot 2021-11-05 at 15 03 31"src="https://user-images.githubusercontent.com/100900/140592650-fa8aa3d4-41b7-4c2f-9a2b-b81e1bbed575.png">
75
+
67
76
## Using the CLI
68
77
### Creating an HTTP endpoint
69
78
To create an http endpoint with default settings (port 8080, return status code 200):
0 commit comments