3.0.1 • Published 9 months ago
sse-cat v3.0.1
sse-cat
Command-line client for Server-Sent Events(SSE).
Install
npm install --global sse-cat
# or
yarn global add sse-cat
Install from source
yarn install
yarn build
yarn global add "file:$(pwd)"
Usage
Usage: sse-cat [options] <url...>
Command-line client for Server-Sent Events(SSE).
Options:
-V, --version output the version number
--header <header...> Pass custom header(s) to server
--event <name...> Pass custom event(s) that need to be captured
--heartbeat-event <name>
--heartbeat-timeout <milliseconds>
-h, --help display help for command
Single SSE
sse-cat 'http://localhost:8080/sse'
Multiple SSE
sse-cat \
'http://localhost:8080/sse/1' \
'http://localhost:8080/sse/2'
Headers
sse-cat \
--header 'User-Agent: sse-cat' \
--header "Authorization: Bearer $TOKEN" \
-- 'http://localhost:8080/sse'
Custom events
sse-cat \
--event 'message' \
--event 'custom-event' \
-- 'http://localhost:8080/sse'
Heartbeat
The heartbeat checker will only be enabled when all heartbeat options are set.
sse-cat \
--heartbeat-event heartbeat \
--heartbeat-timeout 60000 \
'http://localhost:8080/sse'
3.0.1
9 months ago
3.0.0
9 months ago
2.1.1
1 year ago
2.0.7
2 years ago
2.0.6
2 years ago
2.0.9
2 years ago
2.0.8
2 years ago
2.1.0
2 years ago
2.0.3
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.2
3 years ago
1.4.0
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago