mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-05 05:08:30 +08:00
52 lines
997 B
Perl
52 lines
997 B
Perl
=== Websocket
|
|
|
|
--- add
|
|
|
|
goto "http://localhost:4200"
|
|
|
|
find:
|
|
[label "New Request"] [img] = plus [img]
|
|
|
|
plus -> hover
|
|
wait
|
|
|
|
find:
|
|
[label "HTTP"]
|
|
[label "Websocket"] = ws
|
|
|
|
ws -> click
|
|
|
|
find:
|
|
[input] = urlInput [button "Connect"] = connect
|
|
|
|
urlInput -> "wss://echo-websocket.hoppscotch.io"
|
|
connect -> click
|
|
|
|
wait 5000
|
|
|
|
find:
|
|
[button "Disconnect"] = disconnect
|
|
|
|
disconnect -> click
|
|
|
|
find:
|
|
[label "Disconnect from wss://echo-websocket.hoppscotch.io"] = disconnectSuccess
|
|
[label "Connected to wss://echo-websocket.hoppscotch.io"] = connectSuccess
|
|
|
|
# check history
|
|
|
|
find:
|
|
[img] [img] = historyIcon [label "New Request"] = newRequest
|
|
|
|
newRequest -> click
|
|
historyIcon -> click
|
|
|
|
find:
|
|
[label "History"]
|
|
[label "wss://echo-websocket.hoppscotch.io"] = targetHistory
|
|
|
|
targetHistory -> click
|
|
|
|
find:
|
|
[label "Disconnect from wss://echo-websocket.hoppscotch.io"] = disconnectSuccess
|
|
[label "Connected to wss://echo-websocket.hoppscotch.io"] = connectSuccess |